Hello! I have a bit of a query. I'm making a space invaders type game and iv'e got one bullet firing from my ship but when i press the fire button (Z) repeatedly the bullet shoots comes back and then shoots again. What I need to know is how to make it so I can fire one bullet then fire another straight away without the first one coming back. Here is my code:
if e.keyCode==KeyCode.LEFT then
elseif e.keyCode==KeyCode.RIGHT then
elseif e.keyCode==KeyCode.Z then
I've been told I need to use an array but I am pretty in experienced with gideros. If you could help and tell me what to do I would really appreciate it.
Thanks for your support!