Difference between revisions of "Oolite JavaScript Reference: Frame Callbacks"
From Elite Wiki
Cholmondely (talk | contribs) (Page created) |
(No difference)
|
Revision as of 11:05, 31 July 2024
Frame callbacks are user-defined JavaScript functions that run on every single game "frame update".
Overview
These are faster than timers, which only fire 4 times a second. See Oolite JavaScript Reference: Timer for more on those.
Frame callbacks can be used for a number of purposes including animations
Links
- The normal, widely-used standard for creating the callback function (Phkb, 2017)
- Jens Ayton explaining frame callbacks (2011)
- Animated Ships - Thargoid's animation OXP demo (at the bottom of the page) contrasts two flapping butterflies, one animated using Frame Callbacks, the other using Timers.