playMaker

Author Topic: RPG Follow Touch[SOLVED]  (Read 4491 times)

HaraldsVeiss

  • Junior Playmaker
  • **
  • Posts: 68
RPG Follow Touch[SOLVED]
« 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!
« Last Edit: July 28, 2013, 05:20:18 PM by jeanfabre »

HaraldsVeiss

  • Junior Playmaker
  • **
  • Posts: 68
Re: RPG Follow Touch
« Reply #1 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!

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: RPG Follow Touch
« Reply #2 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.
« Last Edit: July 20, 2013, 08:04:13 AM by LampRabbit »

HaraldsVeiss

  • Junior Playmaker
  • **
  • Posts: 68
Re: RPG Follow Touch
« Reply #3 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.

HaraldsVeiss

  • Junior Playmaker
  • **
  • Posts: 68
Re: RPG Follow Touch
« Reply #4 on: July 20, 2013, 03:12:21 PM »
Even when user isn't touching the screen. :/

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: RPG Follow Touch
« Reply #5 on: July 20, 2013, 09:35:25 PM »
Got a screenshot of how you set it up?

HaraldsVeiss

  • Junior Playmaker
  • **
  • Posts: 68
Re: RPG Follow Touch
« Reply #6 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.

HaraldsVeiss

  • Junior Playmaker
  • **
  • Posts: 68
Re: RPG Follow Touch
« Reply #7 on: July 21, 2013, 04:15:15 AM »
2nd

HaraldsVeiss

  • Junior Playmaker
  • **
  • Posts: 68
Re: RPG Follow Touch
« Reply #8 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! ;)