I feel kind of funny asking what i think is a simple question. Ive been away from coding for a little while, and cant seem to remember the answer.
So, how do i make a simple bullet system using types?
I have a gun, and the bullets types. I got it to move when i press space, but it only moves while space is down, and instead of making a new bullet when repressed, it moves the old one back.
I heard using types was more efficient than using arrays, but if it isnt, then please tell me.
If arrays is better, then how do you make a working gun system using arrays?
Again, i feel silly, like i should surely know how to do this, but some help would be really great.
So, how do i make a simple bullet system using types?
I have a gun, and the bullets types. I got it to move when i press space, but it only moves while space is down, and instead of making a new bullet when repressed, it moves the old one back.
I heard using types was more efficient than using arrays, but if it isnt, then please tell me.
If arrays is better, then how do you make a working gun system using arrays?
Again, i feel silly, like i should surely know how to do this, but some help would be really great.