Repository navigation
Home
Syyrion edited this page Apr 9, 2022
·
7 revisions
Timers and variable control for Open Hexagon
Normally the task of timing events requires the use of the onUpdate function and many conditions and checks which is rather tedious. This library provides an easier and more accessible means to timed events and precise, continuous variable control.
Features include:
- Timers for timed events.
- Sliders for variable control (and timed events)
- Keyframe for full customization and universal control.
To Import, add this to the pack dependency list:
{
"disambiguator": "library_sliders",
"name": "sliders",
"author": "syyrion",
"min_version": 2005
}Default values and restrictions of parameters used by sliders and timers.
| Parameter | Default | Restrictions (unless stated otherwise) |
|---|---|---|
| Function | function () end |
Return values of this function are discarded. |
| Period | 1 | Must be greater than 0. |
| Value | 0 | |
| Amplitude | 1 | |
| Y-Offset | 0 | |
| X-Offset (phase) | 0 | |
| Timescale | 1 | Cannot be negative. |
| Easing Function | function (x) return x end |
Must accept one input and return one output both ranging from 0 to 1. |
| Frequency | 240 | Must be greater than 0. |
| Duty Cycle | 0.5 | Must range from 0 to 1. |
| Asymmetry | 0.5 | Must range from 0 to 1. |
The information presented in this wiki is not guaranteed to be accurate. The information presented may be a few versions old.