What it does
sprite.createDummy creates a Dummy in sprite. It takes x and y. x and y are optional.
Signature
sprite.createDummy(x?, y?)Arguments
xoptionalyoptional
Example · generated
function start() { sprite.createDummy(100, 120);}sprite.createDummy is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.