Touch, rotation and movement issue. Capx inc

Get help using Construct 2

Post » Thu Dec 20, 2012 9:30 pm

I've been messing around with touch controls trying to achieve the following: swiping across the sprite, the sprite then sets to the closest of 8 angles, once the touch has finished and then 8 movement will move the sprite in that direction.

I've managed to achieve the first half: I can swipe and get it to set to the direction of the swipe (when you look at the capx this might make more sense :P).

But as soon as you enable 8 direction movement things become really buggy and it doesn't always detect the swipe.

I did use a different method prior to this capx, but if 2 instances of an object were on the screen when you were swiping both would follow the touch and this way resolved it (not to mention it took a lot less events).

Capx - https://dl.dropbox.com/u/17611007/touch%20issue.capx

Thanks for reading :)Toby122012-12-20 21:30:42
B
11
S
2
Posts: 43
Reputation: 1,411

Post » Fri Dec 21, 2012 5:55 pm

bump :)
B
11
S
2
Posts: 43
Reputation: 1,411

Post » Fri Dec 21, 2012 7:08 pm

Change 'Set Angle' to 'No' on the 8Dir behavior.
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,000

Post » Fri Dec 21, 2012 11:04 pm

Once again I owe you a big thank you :). Maybe one day I can return the favour haha :)
B
11
S
2
Posts: 43
Reputation: 1,411


Return to How do I....?

Who is online

Users browsing this forum: Ashley, heliogame and 14 guests