-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Syyrion edited this page Jan 1, 2024
·
7 revisions
Timers and variable control for Open Hexagon
This library provides a less tedious means to make timed events and perform precise, continuous variable control. Unlike the built in timelines, string comprehension is not used, so it will not crash the game if an error is thrown.
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": 2006
}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.