Advertisement
ahmad_zizo

Untitled

Jan 25th, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. var monster = new Sprite(32, 32);
  2. monster.image = game.assets[monster_image];
  3. monster.x = randomX;
  4. monster.y = randomY;
  5. monster.tl.moveBy(288, 0, 90)
  6. .scaleTo(-1, 1, 10)
  7. .moveBy(-288, 0, 90)
  8. .scaleTo(1, 1, 10)
  9. .loop();
  10. game.rootScene.addChild(monster);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement