sprite.createDummy

Section: Sprite 2D

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

  • xoptional
  • yoptional

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.

49 members in sprite