Im working on a 2d paintball game. You move around using the arrow keys and shoot either forward , to the right, or to the left using the wsad keys. Im wondering how i could make it so that when you press the w key a paintball (sprite) will come out in the corresponding keys direction(w = forward, a = left d = right) and will allow for multiple paintballs moving at a time, such as you can press the w key 5 times to shoot 5 in that direction and will all be displayed on the screen at once. also some code to make it so that it will dissapear when it goes off the screen would be useful.( i would be able to make it dissapear when it hits the bunker with some modification) Any help would be appreciated
no signature in this