Skip to content

attach

attach(game, child, parent, offset?): void

Attaches child to parent at an offset: attach(game, sword, hero, { x: 12, y: -4 }). See Parent.

Game

number

number

number

number

number

number

void