This might be a simple question . how do I pass an action if a global variable has increased
For example if the variable x increases from its current value an action has to be passed . thanks
Develop games in your browser. Powerful, performant & highly capable.
Create another variable "oldX"
If X not equal oldX -> Set oldX to X; and do other stuff you need to do