I need to make a reload system for my game. Right now, you have 6 bullets, and each time you shoot, the variable decreases by 1. For reloading, I wanted to make it so that it reloads each bullet with a 0.5 second delay in between each bullet, and I also want the reloading to stop, in other words not finish, if the player shoots during the reload. Ive tried doing something with while loops, but it really isnt working out... Does anyone have any idea of how this can be achieved?
Will be very grateful for an answer