I implemented the scroll feature for my level scene by wiping up and down. The challenge I is in my level HUD layer I have a sprite that covers the HUD so the level objects appears to disappear behind it but when I click the back button I have in the HUD layer, you could see that it also clicks the level button behind it.
How can I prevent the level buttons from click as soon as it enters behind the HUG sprite.
Develop games in your browser. Powerful, performant & highly capable.
You can't prevent clicks from coming through, but you can prevent the event from executing. Simply add another condition to your "On clicked Button" event - "Layer HUD is not visible".
Thanks totally forgot that