-
Notifications
You must be signed in to change notification settings - Fork 1
Script Events
kai edited this page Jun 25, 2026
·
3 revisions
As of 0.1.1
(Note cancellation doesn’t work as intended as of yet, try to find some workarounds in the meantime.)
This is a Script Event that each other Script Event extends.
-
cancelled:Bool- whether the function is cancelled or not. -
cancel():Void- cancels current (cancellable) function. -
cancellable():Bool- whether the function is cancellable or not.
Event used for onUpdate and similar functions. This event is not cancellable.
-
elapsed:Float- time since last frame
Event used for onStepHit and similar functions. This event is not cancellable.
-
curStep- current step (16th note) -
curBeat- current beat -
curSection- current section/measure -
curDecStep- current step (in decimal) -
curDecBeat- current beat (in decimal)
Brainy Engine+ Documentation
Feel free to add things/fix any changes.