it all works fine but the draw loop instantly replaces image 3 with image 1
if i pause the whole of draw then it places it and it isnt immediately replaced but i can still see image1 in the background because its no longer doing the background every frame is ther ea way to pause part of draw?
When box is a class that you wrote it is better to write a function display() inside the function and just call the function. Then crouch variable wouldn’t be global but part of the class.
The if clause I described would be inside of display() function.