Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var monster = new Sprite(32, 32);
- monster.image = game.assets[monster_image];
- monster.x = randomX;
- monster.y = randomY;
- monster.tl.moveBy(288, 0, 90)
- .scaleTo(-1, 1, 10)
- .moveBy(-288, 0, 90)
- .scaleTo(1, 1, 10)
- .loop();
- game.rootScene.addChild(monster);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement