accidentally clicking actors beneath top most graphic overlay actor
revoltandreverb
Member Posts: 159
Hi Guys. I have a intro graphic that overlays the game, and when it is clicked it is destroyed. The problem is when I click it I sometimes accidentally click actors beneath it.
My first idea was to create a boolean called "is_intro_active" and set it to true as soon as the intro graphic actor is spawned. And when the intro graphic is destroyed I set "is_intro_active" to false.
I then add an attribute to the actors beneath the intro graphic to say that "is_intro_active" should be false before you can be clicked etc. but I just can't get it to work.
I spawn the intro graphic with my background actor and then this is what I have for the intro graphic actor http://grab.by/yuf0
Thanks!
Comments
That setup should work but make sure that is_intro_active is true to begin with instead of changing it to true when the actor is spawned.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
looks like you have a comma in your timer instead of a period. I don't know if that is affecting it or not.
@SearleSama I used to think that was a problem, too, but then I realized it was cultural: http://en.wikipedia.org/wiki/Decimal_mark.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Thanks tatiang that did the trick. I use a period but it changes to a comma automatically