accidentally clicking actors beneath top most graphic overlay actor

revoltandreverbrevoltandreverb Member Posts: 159
edited July 2014 in Working with GS (Mac)

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

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    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.

  • SearleSamaSearleSama Member Posts: 108

    looks like you have a comma in your timer instead of a period. I don't know if that is affecting it or not.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    @SearleSama I used to think that was a problem, too, but then I realized it was cultural: http://en.wikipedia.org/wiki/Decimal_mark.

  • revoltandreverbrevoltandreverb Member Posts: 159

    Thanks tatiang that did the trick. I use a period but it changes to a comma automatically :(

Sign In or Register to comment.