I need help on how to disable player inputs. ex. if x happens, then button a is disabled. Is there a way or an extension to do this?
Just create a variable, eg. aButtonEnabled
and put all of the code in the on A button pressed
block into an if statement that checks if aButtonEnabled
is true. Then just set the variable to false when you want to disable the input
i’m not sure if there’s an extension but you could do a variable for the buttons like “a button disable” and on the event you put a true in the variable, then in the button pressed event put a logic block: if “a button disable” false the: (action). if not then: (you could puta shake the screen block so the player knows that he can’t use this button).
Use an if block and a variable
In this example you can just change Paused variable to be false so nothing in the “if then” block runs
When you want to run it again just change it back to true!
Not sure if it is possible to disable player inputs, but you could make an if…else if… statement for e.g. button A which is empty/has no action for the condition which is true for when x happens.