How do I control my actor with swipe on mobile

Just started using Construct 2? Post your questions here

Post » Mon Mar 31, 2014 4:38 pm

I'm trying to control each actor by swiping them with my finger in the direction I want it to go .

couldn't find any tutorial that fit my question here scirra.com/tutorials/all
B
2
Posts: 7
Reputation: 164

Post » Fri Apr 11, 2014 10:49 pm

There's lots of different ways to do it.

1) Record the position of where the player first starts touching eg: (StartX, StartY)
Then compare that value to where they let go
(on touch end) compare 2 values StartX > Touch.X - > player swipped left
If the touch was to the right of the start position, then the player swipped right.
B
87
S
44
G
16
Posts: 1,002
Reputation: 17,932


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest