I don't understand this:
This is my situation:
local variable Switch = 0 (initial value, not constant or static.)
If clicked on mouse, set value Switch to 1.
But when I check the variable, it stays at value 0.
Why is that?[
Local variables always start with their default value when the event runs.
Local variables are reset when c2 starts going through the event sheet again. If you want it to stay throughout the entire game you need to set it to static.
Develop games in your browser. Powerful, performant & highly capable.
Thank you, cow that is encrypted.
That was exactly what I was looking for.