Skip to content

DeltaEvent

Hyomoto edited this page Jun 13, 2021 · 5 revisions
Jump To Go Back Arguments Methods Variables

DeltaEvent( FAST.event, delay, function )

Implements: FrameEvent

Creates a new event that relies on frame timing, and will run at the given periodicity during the specified event. The FAST.events are:

event = new DeltaEvent( FAST.STEP, 1, function() {
    show_debug_message( "Hello World!" );
});
Output: Hello World! is written to the console every one seconds.

Arguments

Name Type Purpose
FAST.event [list](list) The event to add this to
delay int How many seconds before firing
function [func](func) The function to call when the delay has passed

Methods

Jump To top update

update( )

Name Type Purpose
None

Called to update the event.


Variables

Jump To top
Name Type Initial Purpose
__Tock int 1000000 What tick this event should fire on
Clone this wiki locally