So i know how to make ammo using instance variable and subtract one everytime player shoots how do I show a number on screen so a player knows his amount of ammo left.
Create a global variable to keep track of your bullets, and use a text object to display that global variable.
Develop games in your browser. Powerful, performant & highly capable.
thanks I made two post somehow problem fixed now.