Help with touch.count
IsaacPhoenix
Member, PRO Posts: 15
So I have this game where your supposed to hit the screen with a designated number of fingers simultaniously for you to get to the next level. The problem is that it's hard to hit with several fingers at the exact same time. I am trying to make it where you can't have you fingers down all the time, but I don't know how to do it without ruining the whole experience. I've tried to reset touch.count but it registers it again for just removing your fingers. Again something tricky to do all at once. Can someone help me figure out how to solve this problem?
Comments
I'm a bit confused by what you're asking. Why do they need to touch with all fingers at exactly the same time? The touch count changes based on how many fingers are pressed.
What you seem to be saying, though, is that you want to wait until there are x fingers pressed, and when there are x fingers pressed change to the next level. You want it to not immediately move to the level after that if the player doesn't lift their fingers off the screen.
If you're doing a change scene, that's easy. When a change scene is registered, the touch count resets to 0, and all fingers currently on the screen are ignored.
If you're doing it with a single scene, use a method like the one in the demo attached. It just uses an attribute to check that touch count is back to 0 before allowing the touch logic to continue monitoring for touches.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
I am not at home to test this but I will be in a number of hours. That seems amazing. Thank you so much.