Asset - Extension ActiveVars - Trigger Scripts on Value-Changes

X

Xatio

Guest
ActiveVars
Marketplace:
https://marketplace.yoyogames.com/assets/8286/activevars
Category:
Extensions
Price: Free

Description:
ActiveVars allows you to link scripts and variables, so that when the variable changes the script is called.
Common uses may include:
* Settings (resolution changes trigger window/camera/ui resizes
* Counters (prevent objects that modify them from needing to know what's done at certain breakpoints)
* ...and many more ...
Functions:
activeVarsAdd(varName);
activeVarsRem(varName);
activeVarsSet(varName, varValue);
activeVarsGet(varName);
activeVarsLink(varName, varScriptString);
activeVarsUnlink(varName, varScriptString);
activeVarsDebugLink(varValue);

Objects:
oActiveVars:
An object that runs a simple case for all the above functions (for demonstration purposes).
 
Top