-
-
Notifications
You must be signed in to change notification settings - Fork 19
alarm_set
drewmccluskey edited this page Jan 23, 2019
·
5 revisions
Sets alarm event for a specific amount of time
alarm_set(index, steps)| Argument | Description |
|---|---|
int index |
Alarm index |
int steps |
After how many steps the alarm event will run |
Returns: void
Simplex Engine has 16 implemented alarms that can be used as the index for this function. By default 60 steps are one second. Note that each alarm that will be used must first be turned on with alarm_set_running();
alarm_set(5, 120);The above code will run EvtAlarm5 after 120 frames, or 2 seconds.
Back to Alarms