Playmaker Forum

PlayMaker Help & Tips => iOS Help => Topic started by: adamt on May 07, 2015, 01:37:27 PM

Title: Project Location to Map
Post by: adamt on May 07, 2015, 01:37:27 PM
Hi, I've been trying to get a map with the users location as a marker using the Project Location to Map action. Although after having trouble getting it working I started to try and figure out what was going wrong.

So I set everything up, and set a custom GPSLocation so I could test it on my computer. When I adjust the the GPSLocation values in realtime while it's playing, it doesn't seem to make a difference!

The only thing that seems to move the marker is the screen region Min X and Y.

Any help/ideas?

Cheers  :)
Title: Re: Project Location to Map
Post by: adamt on May 08, 2015, 09:02:17 AM
So I got it working! It was the world to screen/screen to world stuff messing me up. It would be ideal to be able to set the camera it uses for the screen region since my map actually goes off screen.

My work around was to have a camera with the MainCamera tag, that's what the project location uses, then another camera thats attached to the map marker, so it moves with it, without the MainCamera tag and uses depth to be placed in front.

I thought setting up a working GPS map would be alot harder! :D