Sometimes you need to transfer some data between scenes. That where Game Attributes come handy. But what's when you game use saving system and you don't want to save some things, like for example direction where player in rpg game is facing? Or current menu index in your RPG Menu (at start you want that arrow will point to first item, but on exiting menu and entering it it should point to last used option)?
I thought about it too. Many times. So I've came up with nice behavior with a bit too long name Non Saving global variables. Funny fact is that despite the fact this is Scene Behavior, you don't need to attach it to any scene to make it work.
Usage it's simple to save variable you need do this call in codemode block:
global__.vars.yourname = value;
Notice two underscores after "global". Also "yourname" is global variable name of your choice. You don't have to worry about types too. It's automatically casted to/from Object type which can be anything. To retrieve it you may want to do this:
_someattribute = global__.vars.yourname;