PlayMaker Help & Tips > iOS Help

Swipe to move [SOLVED]

(1/2) > >>

HaraldsVeiss:
Hello!

I am making a game, that requires swipe to move. What I mean is, when I swipe left I want my character to move left till the end of the screen.

I can't quite figure it out. Its probably  very easy, but since I'm new to this, I haven't noticed the right action.

Best,
Haralds

escpodgames:
Check out the Swipe Gesture Event.

When a swipe is detected based on a minimum distance it will send one of 4 events, Swipe Left, Swipe Right, Swipe Up or Swipe Down.

HaraldsVeiss:
Oh yeah, thats what I needed! Thank you!

What action would you suggest for movement in iOS after the swipe is detected?

H.

HaraldsVeiss:
I will explain what I have set up at this time.

I have swipe gesture event, it is working as it should. The problem is with the movement, I can't figure out, how to make my character to move with constant speed up when player swipes up, when swipes left character changes direction and moves left, in constant speed.

Can someone help?

Best,
Haralds

HaraldsVeiss:
Hi!

I already solved it, if someone has similar problem tell me. I will explain how I did it.

Best,
Haralds

Navigation

[0] Message Index

[#] Next page

Go to full version