ZeDuval
Member
UPDATE: v2.0.2; New:
- Last version included as a rollback-possibility
- Clearer seperation between global and local Flags
- Reduced amount of macros to use
- Added possibility to access local Flags of one object from another
- Added shortcut-functions that are very useful if Flag system is intensively used
In the Create - Event of the object obj_abc use...
Code:
flag_local();
Wherever you want inside this object, use...
Code:
if flag_local("some_word"){
// only happens if this local flag is true
}
To set a flag as true, use...
Code:
flag_local("some_word",true);
Code:
flag_local("some_word",1);
Code:
flag_local("some_word",false);
Code:
flag_local("some_word",0);
Code:
flag_local("some_word",flip);
Code:
flag_local("some_word",2);
Code:
abc = instance_create(0,0,obj_abc); // saving a reference of an object instance to the variable abc, whereas obj_abc is an object where the local flag system is initialized!
local_flag(abc,"some_word",flip);
Code:
if flag_global("any_word"){
// only happens if this global flag is true
}
flag_global("any_word",true);
flag_global("any_word",1);
flag_global("any_word",false);
flag_global("any_word",0);
flag_global("any_word",flip);
flag_global("any_word",2);
Code:
FL() // instead of flag_local()
FG() // instead of flag_global()
Tested for following export modules: Windows, Windows(YYC), HTML5.
Last edited: