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
Develop games in your browser. Powerful, performant & highly capable.
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.
newt that's a good strategy. thanks!