Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- map(path[1:],
- if(controller.tile_mid_x(path[value]) < controller.tile_mid_x(path[value + 1]), set(me.facing, 1),
- controller.tile_mid_x(path[value]) > controller.tile_mid_x(path[value + 1]), set(me.facing, -1)
- );
- animate(me, {
- mid_x: controller.tile_mid_x(value),
- mid_y: controller.tile_mid_y(value),
- }, {
- name: 'move',
- duration: 10,
- replace_existing: false,
- })
- )
Advertisement
Add Comment
Please, Sign In to add comment