If I put the global variable into a group and turn it into a local variable, everything breaks... Isn't it supposed to work??
What is broken?
A global variable can be accessed by any event. Local variables can only be accessed by the events in the same sub event/group. Moving a global variable to a local will delete any conditions/actions that are associated with that variable, except those that are in the sub event/group you moved it to.
Also check that you have made it static as local variables default to non-static.
Develop games in your browser. Powerful, performant & highly capable.
Thanks! Enabling the 'static' option worked.
But I don't really understand what that option is meant for though... I read through the documents and learned that it makes the local variables reset every tick, but why is that useful?
That's right. It's useful when you need to pass a variable every tick, and have it reset when nothing is passed to it.