I am working on a 2d Shooter. I am having trouble with my hero's shooting code. I want it to work like this:
When the spacebar is pressed the sprite shows up, it moves to the top of the screen and is deleted. However, when this is going on i want to be able to press space bar again and make another bullet sprite show up. I would like it to work like galaga where if i held down the space bar it would fire repeatedly. I have added my code. I would like to limit the number of bullet sprites at any one time to be 50.
if you are interested in my game project check it out here:
[href]http://www.frozenpalmstudio.gametruth.org/phantomindex.htm
[/href]
GameTruth.org
See the Light...