Misc Questions
I have a couple questions about an app that I started developing a few days ago. I apologize in advance if these questions have simple answers...this is my first attempt at this.
-I have a large map that the player uses (think of something like a world atlas). I wanted to just have the player able to drag their finger to scroll around the map and zoom if possible, but I've spent hours trying to figure it out without any such luck. Any suggestions?
-Since the game focuses on this singular map, I wanted to have the player able to be able to click on an icon to open up a small information window if zooming in is not possible. But, my efforts all led me to using a different scene for the information, which would reset the player progress from the "main" map the player uses, correct?
Any insight people can provide would be greatly appreciated. Thank you
-I have a large map that the player uses (think of something like a world atlas). I wanted to just have the player able to drag their finger to scroll around the map and zoom if possible, but I've spent hours trying to figure it out without any such luck. Any suggestions?
-Since the game focuses on this singular map, I wanted to have the player able to be able to click on an icon to open up a small information window if zooming in is not possible. But, my efforts all led me to using a different scene for the information, which would reset the player progress from the "main" map the player uses, correct?
Any insight people can provide would be greatly appreciated. Thank you
Best Answers
-
lanmind Posts: 29
Hi @ingeniousapplications. I have a simple idea your first question. To scroll around your map you could create an invisible actor that has camera control on. When the user touches their devices screen constrain the invisible actor to thier touch's x & y positions. I haven't thought of an idea for zooming though.
For your second question first create an actor that is your icon you'd like the player to click. Next create another actor that is the small information window.
In the icon actor create a rule that says when I'm touched spawn the info window actor
That's the basics of it but of course there's lots of things to customize. Like positions of everything, your camera window size that follows your invisible actor and the info inside the window actor -
tenrdrmer Posts: 9,934
This should get you going on a good swipe around the map setup. Also if you go to gamesalads cookbook videos there are some menu swiping tutorials this is based off of.
Pinch to zoom will be tough but all you have to do to zoom is make the camera size smaller. so theres various other ways you could do that. say the user does a 2 finger tap an it zooms in or out on that area.
I have played with pinch to zoom before with only partial luck. it gets very tricky and I gave up on it as I didn't have a real need for it.
Answers