I am creating a small Java Jpanel game in which I am supposed to have a rocket that moves up and down via arrows and fires via space. The firing method should work like th
The problem was quite simply that I had forgotten to use == in my if(boolean) statements.