I used the beginner tutorial for the top-down shooter and I was wanting to expand off it to see what I can do. When I make a variable called Ammo with a starting number of 7 and display it on the HUD, it works fine, but I can't get to the point where I can check if it has no ammo, and if so, put a timer for reloading if you try to shoot.
I would think you'd need to create some variable, let's call it "ammo".
Then, on startup, set ammo to 100.
If (key) pressed AND ammo > 0, then shoot bullet.
Hope this helps!
Develop games in your browser. Powerful, performant & highly capable.
How would I make an if-else statement in construct?
Adding a "system else" event would do..