If true, the runtime is running at 60 FPS. If false, the runtime is running at 30 FPS.
The time of a step, measured in milliseconds. null if accessed before the project has started.
This refers to the "Remove raw asset data after loading to save RAM" option in the packager. Thus, this may be false even when the project has been packaged. To detect the packager, detect the precense of scaffolding instead.
Optionalv2Optionaloptions: { stackClick?: boolean; updateMonitor?: boolean }The event loop function.
Increment the value of the runtime's cloud variable counter. Check the value before you call this method; it will let the counter go above the limit. This method does not actually create a new cloud variable.
Optionaltarget: RenderedTargetOptionaltarget: RenderedTargetReturns true if the runtime's cloud variable counter is under the limit.
Remove everything from the Runtime.
Emit a targetWasCreated event.
OptionaloldTarget: RenderedTargetOptionaltarget: RenderedTargetReturns the value of the runtime's cloud variable counter.
Find a sprite's original target (not a clone or stage) using the sprite's name. Returns undefined if the target doesn't exist.
Look up a target by it's drawable ID. Returns undefined if the target doesn't exist.
Look up a target by its ID. Returns undefined if the target doesn't exist.
Returns the target that is the stage. Returns undefined if called before the project has loaded or if the stage has somehow been removed.
Start "when green flag pressed" scripts.
Returns true if the runtime's cloud variable counter is non-zero.
A thread is considered active if it is in the thread list and is not STATUS_DONE.
A thread is considered waiting if:
Stop all timers.
Decrement the value of the runtime's cloud variable counter. Check the value before you call this method; it will let the counter go under 0. This method does not actually remove a cloud variable.
Start the runtime's event loop. This doesn't start any scripts.
OptionalmatchFields: Record<string, unknown>Optionaltarget: RenderedTargetPress the stop sign.
Optionaloptions: { stackClick?: boolean; target?: string }
Interval ID returned by setInterval(). null if accessed before the project has started.