pokecrystal-board/engine/events/forced_movement.asm

52 lines
692 B
NASM
Raw Normal View History

Script_ForcedMovement::
2015-11-11 16:11:08 -05:00
checkcode VAR_FACING
2018-02-02 21:09:17 -05:00
ifequal DOWN, .down
ifequal UP, .up
ifequal LEFT, .left
ifequal RIGHT, .right
2015-11-11 16:11:08 -05:00
end
.up
2015-11-11 16:11:08 -05:00
applymovement PLAYER, .MovementData_up
end
.down
2015-11-11 16:11:08 -05:00
applymovement PLAYER, .MovementData_down
end
.right
2015-11-11 16:11:08 -05:00
applymovement PLAYER, .MovementData_right
end
.left
2015-11-11 16:11:08 -05:00
applymovement PLAYER, .MovementData_left
end
.MovementData_up:
2015-11-15 21:28:15 -05:00
step_dig 16
2016-05-14 13:46:14 -04:00
turn_in DOWN
2015-11-15 21:28:15 -05:00
step_dig 16
2016-05-14 13:46:14 -04:00
turn_head DOWN
2015-11-11 16:11:08 -05:00
step_end
.MovementData_down:
2015-11-15 21:28:15 -05:00
step_dig 16
2016-05-14 13:46:14 -04:00
turn_in UP
2015-11-15 21:28:15 -05:00
step_dig 16
2016-05-14 13:46:14 -04:00
turn_head UP
2015-11-11 16:11:08 -05:00
step_end
.MovementData_right:
2015-11-15 21:28:15 -05:00
step_dig 16
2016-05-14 13:46:14 -04:00
turn_in LEFT
2015-11-15 21:28:15 -05:00
step_dig 16
2016-05-14 13:46:14 -04:00
turn_head LEFT
2015-11-11 16:11:08 -05:00
step_end
.MovementData_left:
2015-11-15 21:28:15 -05:00
step_dig 16
2016-05-14 13:46:14 -04:00
turn_in RIGHT
2015-11-15 21:28:15 -05:00
step_dig 16
2016-05-14 13:46:14 -04:00
turn_head RIGHT
2015-11-11 16:11:08 -05:00
step_end