I have a boolean variable named “Processing”. While Processing is True, the player should not be able to interact with the screen. Can someone tell me the best way to do this, please? I’ve tried hiding the cursor, but the player can still click/touch the screen. I’ve tried creating a transparent sprite on a layer above the play area to cover it all, but the player can click/touch through the sprite and still interact with the play area. I’ve looked through the Actions and Behaviors, and I just don’t see how to accomplish this.
You can’t disable it, but you can prevent it from running.
I don’t know what and how scene interactions you have but the boolean condition must be added to every button etc.
It’s a chain reaction game where you click/tap one object, that object rotates, bumps other objects (all duplicates of the original object), then those objects rotate, and so on. So, once the player clicks/taps one of the objects, they shouldn’t be able to click/tap any of the objects again until the chain reaction has finished. I have the boolean “Processing” set to True once the chain reaction begins, but I don’t know what action will prevent the player from clicking/tapping when the condition is true.
Are you saying I need to use the boolean on every object as an instance variable?
You would just need to have the Boolean check as the first condition then you can put as many subevents as you want. Each subevent depends on the preceding event (that it’s a sub of) being true. You would only need to check once although, you could break it apart to fit your logic and readability.
For the final action to trigger, all conditions need to be true