playMaker

Author Topic: Touch movement controls for phone  (Read 1326 times)

soccergames

  • Playmaker Newbie
  • *
  • Posts: 4
Touch movement controls for phone
« on: September 04, 2017, 09:01:46 AM »
Hi guys,

I am trying to add movement for phone mechanics similar to how "soccer stars" game does it. 
The control mechanic is you touch the ball and pull back using your finger which creates an arrow gauge, the further you pull back the more the ball will move and the direction in which you move your finger changes the direction.


Are there any scripts playmaker has that are similar to this?

Thanks!

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: Touch movement controls for phone
« Reply #1 on: September 04, 2017, 12:13:45 PM »
There is no one action for this, however it could be made with playmaker. I may be putting together a 2d/ 2.5d tutorial for something similar soon.

Are you familiar with touch events?

Basically you need to use a touch event to see if you are touching the ball. Then get the direction between the ball and your finger. Then apply force in the opposite direction. Anyways, if you can wait a few days, it should be mostly covered in my tutorial video  8)
« Last Edit: September 04, 2017, 12:16:31 PM by tcmeric »