Only Pressing one button at once?

Macca_McGillMacca_McGill Member, PRO Posts: 108
edited November -1 in Working with GS (Mac)
Hello again,

Ive just noticed when testing my game that when there are more than one button on screen, i.e the main menu or settings, the user can select more than one button at once causing menu's to overlap. Does anyone know how to fix this? Having only one button or actor selectable at any one time?

Cheers,

Comments

  • hotMagichotMagic Member, PRO Posts: 266
    The way I do it for that type of situation is to make a variable called IsLocked. Anytime you are touching an actor, set IsLocked to 1. when you are done, set it back to zero. Any actor that requires the exclusive touch thing, set it to look for the touch event and that Islocked is 0.

    Does that help?
  • Macca_McGillMacca_McGill Member, PRO Posts: 108
    Yea ill give it a go. Cheers :)
Sign In or Register to comment.