certainly...i did the following
if(!fireKeyPressed) spaceReleased = true;
if(fireKeyPressed&&(!playerDead)&&spaceReleased&& !soundManager.isPlayingSound())
so what this does is ensures two things, the player cannot shoot again until the shoot button has been released and then re-applied and also that the player cannot shoot until the sound that is playing has finished playing
:)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement