Scene layer and buttons issue

SingleSparqSingleSparq Member Posts: 1,339
edited November -1 in Working with GS (Mac)
Dunno if this is a bug or expected but I have a scene with an options button - instead of sending it to an new scene, I want to options to be a pop up screen over the scene, so I spawn a background actor which in-turn spawns some buttons for the options.

The problem is the buttons from the scene below the screen are still activate on the iphone if that area is touched - the scene layer has the options actors on top of other elements and I have even placed a button rule on the background actor itself hoping to negate the effect but those hot spots are still present - other than placing a off condition on those buttons below is there something I'm missing?

Comments

  • JGary321JGary321 Member Posts: 1,246
    Not really a bug, you can push buttons through layers. What you need to do is something like this:

    In your button that spawns the Options window create this rule

    Need:
    game.attribute Boolean called "Options"

    When Pressed
    Spawn Options Menu
    Change game.Options = true

    Then under the buttons that you don't want to be able to click encompass the rules in a rule that says:

    If game.Options = FALSE

    This way they are only clickable when Options is not open. Now on whatever button you have that will CLOSE the options menu create a rule to set game.Options = FALSE.

    Hope this helps.

    Josh
  • SingleSparqSingleSparq Member Posts: 1,339
    Yeah just found tshirt solution too,(http://gamesalad.com/forums/topic.php?id=4195#post-251050) more attributes to add - Thanks for the info!!
  • SingleSparqSingleSparq Member Posts: 1,339
    Speaking of tshirt!!! Ello!
Sign In or Register to comment.