playMaker

Author Topic: Move player to touch point  (Read 1958 times)

thorntonp72

  • Playmaker Newbie
  • *
  • Posts: 5
Move player to touch point
« on: October 21, 2022, 12:50:34 AM »
Hi,

I am trying to work out how to get my spaceship (aka player) move to the point where I am touching the screen and as I move my finger it follows it around.

I have tried various techniques but cannot seem to get this to work.

My object has a Box collider and I have tried a couple of C# scripts, but I am really trying to avoid going down that pathway as it's not why I bought Playmaker for.

Is there any Tutorials on this as I cannot see one or see how to do this?

Thank you

thorntonp72

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Move player to touch point
« Reply #1 on: October 21, 2022, 01:15:52 AM »
I have tried the following, but all it seems to do is place the ship at (what it looks like) top/let, top/right, bottom/left and bottom/right in a fast and random mode.

FSM
Start -> State1
Get Touch info
Finger ID (None)
Store X - playerPositionX
Store Y - playerPositionY
every Frame - Checked

Move Position
Use Owner
X = playerPositionX
Y = playerPositionY
Space = Self
EveryFrame


thorntonp72

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Move player to touch point
« Reply #2 on: October 21, 2022, 02:09:29 AM »
Solved.

Please refer to on how to do this.

Thank you