Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
Matěj Štágl edited this page Feb 11, 2019 · 11 revisions

Alarms are a simple way to execute some code after a known number of steps. Since FPS may vary either due to a slow system executing your game or a different screen refresh rate (most systems targets 60 fps, yet 144 fps is becoming common). Therefore specifying a number of steps is more secure than specifying delta time. Once alarm is set, it decreases the time of steps given by 1 each step. Once 0 is reached, the event EvtAlarmN is triggered and alarm is set to -1. Simplex comes with 16 alarms predefined. Alarms are initialized on the first use (on a first alarm_ call in the instance). Therefore if you need a single alarm only, it is to consider whether alarms are needed, since you will get all of them loaded into the memory.

Alarm Functions

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /