How do I measure Swipe (Touch) Speed

Just started using Construct 2? Post your questions here

Post » Sat Apr 04, 2015 10:27 pm

Hello all,

Sorry if this has been answered previously. I'm having trouble getting the system measure the speed of swipes across the touch screen. I ultimately want to use that value to apply to "Bullet" sprites to give the sensation of flicking objects away at a speed relative to how fast the flick was.

I tried using the "Compare Touch Speed" event but I'm unsure what values it requires. Thanks for any and all responses.
B
5
Posts: 9
Reputation: 243

Post » Sat Apr 04, 2015 10:58 pm

set bullet speed to clamp(Touch.SpeedAt(0),min max)
Image ImageImage
B
165
S
49
G
146
Posts: 8,032
Reputation: 96,054

Post » Sat Apr 04, 2015 11:11 pm

Thanks a bunch :D
B
5
Posts: 9
Reputation: 243



Return to Beginner's Questions

Who is online

Users browsing this forum: danispag and 1 guest