Advanced Repeat (Editor Sharp)
Advanced Repeat is a new node that is introduced in LuaSTG Editor Sharp. Instead of defining Var X name, init value and increment in wxlua editor, it uses some particular nodes placed as the child of Variables to define behaviour of variables through doing the repeat. These variables are useful for making danmakus, and are dynamically compiled if Number of times property changes. This feature is useful, especially when modifying parameters of the danmakus.
Increment Variable Node[edit | edit source]
Increment Variable Node is a node that defines a variable with behaviour similar to tradition Repeats.
Linear Variable Node[edit | edit source]
Linear Variable Node is a node that defines a variable and its behaviour using its inital value, its final value and its interpolation mode.
Options | Function |
---|---|
Name | The variable's name. |
From | The inital value in this variable. |
To | The final value. |
Precisely | Determine whether the variable becomes the final value in the last loop. If this option is set to true, the variable will have the final value in last loop. Otherwise, it will become the value that just need one extra loop to become the final value. This option is an editor-only option. |
Mode | The interpolation mode of this variable. Can be MOVE_NORMAL, MOVE_ACCEL, MOVE_DECEL, MOVE_ACC_DEC. They are written in polynomial. This option is an editor-only option. |
Sinusoidal Interpolation Variable Node[edit | edit source]
Likely to Linear Variable Node, it uses its inital value, its final value and its interpolation mode to define a variable and its behaviour. However, Mode Option there is SINE_ACCEL, SINE_DECEL and SINE_ACC_DEC. This option is an editor-only option.
Sinusoidal Movement Variable Node[edit | edit source]
Sinusoidal Movement Variable Node defines a variable with value that moves along a sinusoidal function in a certain period.
Options | Function |
---|---|
Name | The variable's name. |
Initial phase | The inital phase of this variable in its sinusoidal function. |
Min | The minimal value of the sinusoidal function. |
Max | The maximal value of the sinusoidal function. |
Num of period | The number of periods elapsed when this variable moves along its sinusoidal function. Can be a float number. |
Precisely | Determine whether the variable becomes the final value in the last loop. If this option is set to true, the variable will have the final value in last loop. Otherwise, it will become the value that just need one extra loop to become the final value. This option is an editor-only option. |
Rebounding Variable Node[edit | edit source]
Rebounding Variable Node defines a variable with value become one at first, then become another alternately. They are repeated like Init-Another-Init-Another-...
Options | Function |
---|---|
Name | The variable's name. |
Init | The inital value of this variable. Must be numeric. |
Another | The other value of this variable. Must be numeric. |
Sinusoidal Oscillation Variable Node[edit | edit source]
Sinusoidal Movement Variable Node defines a variable with value that moves along a sinusoidal function continuously.
Options | Function |
---|---|
Name | The variable's name. |
Initial phase | The inital phase of this variable in its sinusoidal function. |
Min | The minimal value of the sinusoidal function. |
Max | The maximal value of the sinusoidal function. |
Omega | The ω in sinusoidal function Asin(ωx+φ)+B. |