Pro Swipe Formula for Mobiles

Get help using Construct 2

Post » Mon Mar 18, 2013 9:54 am

I am also looking for similar solution.

Example: swipe from left to right or right to left would bring up some sprite. And swipe from top to bottom or bottom to top would bring up some sprite.

Can anyone submit a capx?
B
9
S
3
G
1
Posts: 2
Reputation: 1,383

Post » Fri Apr 19, 2013 10:19 pm

@rohit555,

@aridale's capx kinda works.. check.
Krish
Hey! Did you know that you can hire me to make your games?

Click Here to See More
B
21
S
6
G
5
Posts: 391
Reputation: 5,627

Post » Fri Apr 19, 2013 10:51 pm

[QUOTE=rohit555] I am also looking for similar solution.

Example: swipe from left to right or right to left would bring up some sprite. And swipe from top to bottom or bottom to top would bring up some sprite.

Can anyone submit a capx?[/QUOTE]

Do you need this to happen whilst swiping, or is activating a new sprite after swiping okay? Because if you compare touch.X at the start of a swipe to the touch.X at the end of a swipe, you can work out whether a swipe is going left or right, and checking the Y variable will tell you if it's going up or down.
B
15
S
7
G
7
Posts: 250
Reputation: 5,298

Post » Sun Apr 21, 2013 7:08 pm

Yeah, capx is super!
But it would be much cooler if character will repeat circle path, to example.
B
55
S
19
G
8
Posts: 191
Reputation: 8,831

Post » Sun Apr 21, 2013 11:32 pm

Here:Link is a capx with my version of a scroll swipe based on touch's angle, and speed.

Its clamped, and angled to my personal preferences, but there's plenty of ways to tweek it.

Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Previous

Return to How do I....?

Who is online

Users browsing this forum: Kagubro and 19 guests