Hi!
If there?s already a way of doing this, please forgive me, I?ve not found it on the foruns or the manual.
Would it be possible to define a variable like:
Var01 = stage.Height;
or
Var01 = Var03 - Var02;
?
Thanks!
Is there a real need? I mean, that's kind of redundant...
You can always create a variable and assign values of other variables to it whenever necessary, e.g. each tick.
Well, it would be more of a shortcut than anything else.
Maybe for defining a variable like that:
Velocity = 30 * dt;
instead of having to write
Enemy - Move forward Velocity * dt;
just writing
Enemy - Move forward Velocity;
Develop games in your browser. Powerful, performant & highly capable.
So just use a local variable and assign a desired value to it. You can create those variables at start of each event group. That's what local variables can be used for... to avoid repetitive use of expressions, if the value isn't going to change during the tick.