So i know how to make ammo using instance variable and subtract one every time the player shoots how do I show a number on screen so a player knows his amount of ammo left.
Develop games in your browser. Powerful, performant & highly capable.
Add a text-object
system every tick
text set text to : "Ammo Left: "& player.ammo
assuming the instance variable is called ammo..
You wouldn't have to set it every tick, offcourse, only when changed, but this is just an example..
Thanks I heard the text object acts up can you do this with sprite font
yep..
same action..
Thanks man