Playmaker Forum

PlayMaker Help & Tips => iOS Help => Topic started by: HaraldsVeiss on January 25, 2014, 04:49:57 PM

Title: Swipe to move [SOLVED]
Post by: HaraldsVeiss on January 25, 2014, 04:49:57 PM
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
Title: Re: Swipe to move
Post by: escpodgames on January 25, 2014, 04:58:59 PM
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.
Title: Re: Swipe to move
Post by: HaraldsVeiss on January 25, 2014, 05:07:02 PM
Oh yeah, thats what I needed! Thank you!

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

H.
Title: Re: Swipe to move
Post by: HaraldsVeiss on January 26, 2014, 10:30:45 AM
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
Title: Re: Swipe to move
Post by: HaraldsVeiss on January 27, 2014, 01:06:10 PM
Hi!

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

Best,
Haralds
Title: Re: Swipe to move
Post by: Caro on June 10, 2018, 09:02:51 AM
Hi!

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

Best,
Haralds

Great please share it! I'm having this problem :)