Vultraz

Untitled

Jun 25th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. map(path[1:],
  2. if(controller.tile_mid_x(path[value]) < controller.tile_mid_x(path[value + 1]), set(me.facing, 1),
  3. controller.tile_mid_x(path[value]) > controller.tile_mid_x(path[value + 1]), set(me.facing, -1)
  4. );
  5.  
  6. animate(me, {
  7. mid_x: controller.tile_mid_x(value),
  8. mid_y: controller.tile_mid_y(value),
  9. }, {
  10. name: 'move',
  11. duration: 10,
  12. replace_existing: false,
  13. })
  14. )
Advertisement
Add Comment
Please, Sign In to add comment