Swiping fast triggers a touch detection glitch

Get help using Construct 2

Post » Wed Jan 06, 2016 5:04 pm

I have 4 boxes that change size when touching and go back to original size when not touching. It seems to work fine when swiping across the boxes from left to right and right to left. However, when swiping back and forth really fast, I sometimes get multiple boxes not at original size. How do I prevent this from happening?

https://dl.dropboxusercontent.com/u/73836006/glitchMultipleBoxes.capx
Check out my games on Google Play:

BEAST ATTACK (900,000+ downloads!)

ZOMBIE BASH (Android) (Launched Feb 17)

ZOMBIE BASH (iOS) (Launched March 17)
B
47
S
15
G
2
Posts: 427
Reputation: 5,089

Post » Wed Jan 06, 2016 5:39 pm

Its because of frameskip. You're moving faster than collisions can keep up.
If it's purely aesthetic I would just fake it with a system wait, or timer behavior.
Image ImageImage
B
165
S
49
G
146
Posts: 8,036
Reputation: 96,062

Post » Thu Jan 07, 2016 12:36 am

@newt that's a good strategy. thanks!
Check out my games on Google Play:

BEAST ATTACK (900,000+ downloads!)

ZOMBIE BASH (Android) (Launched Feb 17)

ZOMBIE BASH (iOS) (Launched March 17)
B
47
S
15
G
2
Posts: 427
Reputation: 5,089


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], LaurenceBedford, legendaryarcane, Magistross, randomly and 12 guests