Playmaker Forum
PlayMaker Help & Tips => iOS Help => Topic started by: HaraldsVeiss on July 17, 2013, 02:57:00 PM
-
Hi,
This is my first project using PlayMaker. I run in to some problems making my character movement. I want to make my character to go to the spot where I touch on the screen, but I also want character to move forward when touch is stationary. I want that player doesnt need to tap all the time to move forward. If it helps, I want to achieve simillar controls like in iOS game Tiny Troopers 2.
Thank you in advance!
-
Please, someone help. I have searched for a week and cant find anything like the movement i described!
-
Use the mouse pick action (works on ios) to get the position to move to .... then use the move towards action .. done :P
Also you will want to base the time to move to the point on the distance between the character starting position and the end position.
-
Thank you! It worked, but it works only when camera is not moving. When camera is following the player, mouse pick keeps going forward and doesn't stop.
-
Even when user isn't touching the screen. :/
-
Got a screenshot of how you set it up?
-
Yes of course. Here they are. First one is target set up, and second is player setup.
-
2nd
-
Never mind, I figured the not stoping problem. Thank you for nudging me in the right direction! ;)