title says it all
Add Tween behavior to any existing object (or create an invisible sprite for that). Use "Tween Value" action, and while this tween is running, set global variable to Sprite.Tween.value("name")
Develop games in your browser. Powerful, performant & highly capable.
Well at that point why use a global variable?
I don't know, maybe you have lots of events that rely on this variable.