function onCreated() { this.showCharacter(); move(2, 2, 0.8, 8); this.ani = "walk"; } function onMovementFinished() { sleep(5); this.destroy(); }