Button Question

I have a question regarding how to disable a button. I have my level select screen populated with 20 buttons… when you click on the level you want to go to, a pop-up screen comes up, with a variety of information regarding the level you have selected… such as highscore etc…, also included in the pop up is a play btn, which takes the user to the actual level. The problem is that when the popup screen opens with the play btn… it pops up in front of all the other level select buttons… I need to figure out how to disable the functionality of the level select buttons while the pop up screen is open. Any suggestions? [import]uid: 28912 topic_id: 9870 reply_id: 309870[/import]

Basically, if one button, overlaps another button, how do you disable the button that is beneath the overlapping button? [import]uid: 28912 topic_id: 9870 reply_id: 35985[/import]

@ HavocHare

when your pop up screen pops up you can remove event listener from your
other buttons, then when the user hits a button from the pop up screen you
can add the event listener again.

here is a quick example:

level select button -> when you click it a pop up screen appears -> in order
for my level select button to work I had to have add a event listener -> So
when my I click my level select button and pop up screen appears -> I
code a level select button remove event listener instead of add event listener ->
then when I click a button from my pop up menu I can level select button add
event listener again.

hope this helps it works fine there are other method you can use like making your
buttons under go invisible or body active false ect…

~ Best of luck,
LeivaGames [import]uid: 30314 topic_id: 9870 reply_id: 35987[/import]