Im creating a mobile game for 2 players on one screen to play with my friends. The problem, that two players have guns, and I want to do a cooldown of shooting it. How do I do it?
Develop games in your browser. Powerful, performant & highly capable.
Use the timer behavior. Only allow shooting if the cooldown timer is not running. Start timer when firing.