Hi everyone!
I'm new to this forum but not to Qbasic. That being said, there's been something that I've been trying to figure out for a while now and haven't made much progress.
Basically, I'm trying to make a traditional top-down shooter where the spacebar is the fire key.
I can make the spacebar fire one unique shot, but what I can't for the life of me figure out is how to get it to fire X amount of *unique* shots. (By unique I mean that each shot has its own Y coordinate so it can be tracked separately for the hit detection).
The way I understand it is like this:
When the player hasn't done anything (like pressed the spacebar to fire a shot), the array used to hold the shots is empty or 0 because nothing has happened. Then when the player presses or holds down the spacebar, the array should increase by 1, generating new coordinates for each unique shot.
Is it possible to start with an empty array and increase by one? Or am I going about this the wrong way entirely?