Hello all,
I'm a brandnew game developper and I'm making a game in space with a spaceship.
I'm trying to implement a switchable shield with two sounds : ShieldUP (for activation) and ShieldDown (for desactivation).
Here is the issue :
You can see that I check if the A key is pressed and neither the white sprite is visible. Texte2 is a debug allowing me to know which code is executed.
I don't know why but the last event (4) is always executed. If I switch the 3 with the 4, the last will be executed.
How do I check with a keyboard input if my sprite is visible or not ?