Blocking touching actors during animation of another actor
![tpad](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
Hello y'all!
I've been designing a puzzle game for some weeks now and I've run into a major bug: In this puzzle game the player touch one actor and after it finishes an animation it affects all others, but the player must not touch the other actors while the animation and the chain reaction is happening.
I've thought of a way to solve this, but it doesn't seem to work: when the actor is touched I spawn another actor that overlaps everything (the size of the screen) and doesn't let touches passthrough. The issue with this solution, though, is that the touches do passthrough it (of course it's in the front of everything). Is there a way to use this as a solution? Or is there any other way you can think of and help me solve this bug?
Thanks so much!
I've been designing a puzzle game for some weeks now and I've run into a major bug: In this puzzle game the player touch one actor and after it finishes an animation it affects all others, but the player must not touch the other actors while the animation and the chain reaction is happening.
I've thought of a way to solve this, but it doesn't seem to work: when the actor is touched I spawn another actor that overlaps everything (the size of the screen) and doesn't let touches passthrough. The issue with this solution, though, is that the touches do passthrough it (of course it's in the front of everything). Is there a way to use this as a solution? Or is there any other way you can think of and help me solve this bug?
Thanks so much!
Comments
And set all of your actors rule
When touch is pressed AND
When game.touchallowed is true
--All your Rules
Then in the rule that triggers your animation setup a change attribute game.touchallowed to false also.
___________________________________________________________________________________
TEMPLATES AND PROJECT HELP BY TENRDRMER. CLICK HERE!!!
AppSolute Entertainment on Facebook
AppSolute Entertainment on iTunes
I'm not with my mac right now, so I'll be testing it later.
Thanks so much for your help, tenrdrmer.