How do I detect touch with movement over the object

Get help using Construct 2

Post » Mon Nov 03, 2014 8:45 pm

How do I detect if the player is touching the screen and moving your finger across the length of the object (sprite) for 03 or 05 times? (like Aladdin rubbing the magic lamp). Thanks in advance.
B
74
S
14
G
4
Posts: 1,016
Reputation: 8,135

Post » Mon Nov 03, 2014 10:21 pm

I'm not sure this is a good idea...but is the idea...
You do not have the required permissions to view the files attached to this post.
B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072

Post » Mon Nov 03, 2014 11:23 pm

Thank you, @korbaach. Very nice example. I really appreciated.
B
74
S
14
G
4
Posts: 1,016
Reputation: 8,135

Post » Tue Nov 04, 2014 9:43 pm

I really liked the @korbaach solution but I would prefer a new one without using a plugin. Any more suggestions?
B
74
S
14
G
4
Posts: 1,016
Reputation: 8,135

Post » Wed Nov 05, 2014 4:49 am

There is no need to use the plugin, it was just a visual example...
you can use an ordinary sprite.........or someone can make a simpler way...
You do not have the required permissions to view the files attached to this post.
B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072

Post » Wed Nov 05, 2014 12:22 pm

@korbaach

It is true. I thought the plugin would be necessary, but it's not. Thank you for the suggestion.
B
74
S
14
G
4
Posts: 1,016
Reputation: 8,135

Post » Thu Nov 06, 2014 7:22 pm

@korbaach

I did some experimenting with your example and simplified it, using just the touch event instead of including the sprite. I am grateful for your suggestion, without it would not have come to this solution.
You do not have the required permissions to view the files attached to this post.
B
74
S
14
G
4
Posts: 1,016
Reputation: 8,135


Return to How do I....?

Who is online

Users browsing this forum: Cubeeo, dop2000, SEGamestudio and 4 guests