Hello
I am making a game where the player shoots missiles at falling asteroids. I have it set up so when the player presses the spacebar a missile is fired.
I want to have it so the player can only have 3 missiles on the game screen at once.
I have set a local variable called "shot" on the missle object. I have the value of "shot" to increase vy 1 each time the space bar is pressed and the value "shot" decreases each time the missile goes beyond the playing are.
How do I check to see if the value of "shot" is less than three when pressing the space bar before the missile is created?
Thanks for any help.