Add an event to make it so if a variable would go under zero, it makes it zero instead. Or to the event which substracts the variable, add to the event that it can not be substracted if it it would go under 0.
Add an event to make it so if a variable would go under zero, it makes it zero instead.
Or to the event which substracts the variable, add to the event that it can not be substracted if it it would go under 0.
awesome idea! thanks !
Develop games in your browser. Powerful, performant & highly capable.
hello everyone!
i am creating an idle game, (a game like cookie clicker) and i have a problem, how can i set values/variables so that they cant go negative ?