Playmaker Forum

PlayMaker Help & Tips => iOS Help => Topic started by: HaraldsVeiss on July 17, 2013, 02:57:00 PM

Title: RPG Follow Touch[SOLVED]
Post 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!
Title: Re: RPG Follow Touch
Post by: HaraldsVeiss on July 20, 2013, 07:35:18 AM
Please, someone help. I have searched for a week and cant find anything like the movement i described!
Title: Re: RPG Follow Touch
Post by: escpodgames on July 20, 2013, 08:02:42 AM
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.
Title: Re: RPG Follow Touch
Post by: HaraldsVeiss on July 20, 2013, 03:11:25 PM
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.
Title: Re: RPG Follow Touch
Post by: HaraldsVeiss on July 20, 2013, 03:12:21 PM
Even when user isn't touching the screen. :/
Title: Re: RPG Follow Touch
Post by: escpodgames on July 20, 2013, 09:35:25 PM
Got a screenshot of how you set it up?
Title: Re: RPG Follow Touch
Post by: HaraldsVeiss on July 21, 2013, 04:14:31 AM
Yes of course. Here they are. First one is target set up, and second is player setup.
Title: Re: RPG Follow Touch
Post by: HaraldsVeiss on July 21, 2013, 04:15:15 AM
2nd
Title: Re: RPG Follow Touch
Post by: HaraldsVeiss on July 21, 2013, 07:13:47 AM
Never mind, I figured the not stoping problem. Thank you for nudging me in the right direction! ;)