botton on button can someone please help?

SwaggedSwagged Member Posts: 50
edited November -1 in Working with GS (Mac)
i have a button that starts a level however i have another button on top that should prevent it from being clicked. its not working out and every time i click the top button the level starts anyway. how can i fix this???

Comments

  • old_kipperold_kipper Member Posts: 1,420
    use a game attribute boolean that sets the a rule that switches the second button on after the level starts or some similar condition. It's a bit dependant on what you want to do.

    cheers

    Lord kipper GCSE french (failed)
  • SwaggedSwagged Member Posts: 50
    yea i cant get anything to work ive been at it for 2 hours :(
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    When you touch the screen of click you everything all the way to the bottom is "touched"

    Im really understanding what you are doing but it sounds like you have a bottun covering a button. until the level starts. So have a boolean called touchallowed. In the button on top put a rule when alpha is 0 change game.touch alloweddd to true otherwise change game.touchallowed to false.

    now in your covered button add a condition to the touh is pressed rule. When attribute game.touchallowed is true
Sign In or Register to comment.