Hello to all here I wish to block a key of the keyboard when I lose all my life points in order to no longer have a scale that runs but I really don’t know how to do it I looked in the doc but find nothing for my problem.
This is my code line for using the keyboard :
//For used of keyboard
keyboard = this.input.keyboard.createCursorKeys();
And this is my condition of defeat :
//Condition of defeat
if (healthPoints == 0)
//locks the keyboard key so that the scale is not performed after the game is lost