summaryrefslogtreecommitdiff
path: root/docs/movement_commands.md
blob: 61ebf58de1998a657effc76f5e1efc8c79b2b732 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# Movement Commands

Defined in [macros/scripts/movement.asm](https://github.com/pret/pokecrystal/blob/master/macros/scripts/movement.asm) and [engine/overworld/movement.asm:MovementPointers](https://github.com/pret/pokecrystal/blob/master/engine/overworld/movement.asm).


## `$00`−`$03`: <code>turn_head <i>direction</i></code>


## `$04`−`$07`: <code>turn_step <i>direction</i></code>


## `$08`−`$0B`: <code>slow_step <i>direction</i></code>


## `$0C`−`$0F`: <code>step <i>direction</i></code>


## `$10`−`$13`: <code>big_step <i>direction</i></code>


## `$14`−`$17`: <code>slow_slide_step <i>direction</i></code>


## `$18`−`$1B`: <code>slide_step <i>direction</i></code>


## `$1C`−`$1F`: <code>fast_slide_step <i>direction</i></code>


## `$20`−`$23`: <code>turn_away <i>direction</i></code>


## `$24`−`$27`: <code>turn_in <i>direction</i></code>


## `$28`−`$2B`: <code>turn_waterfall <i>direction</i></code>


## `$2C`−`$2F`: <code>slow_jump_step <i>direction</i></code>


## `$30`−`$33`: <code>jump_step <i>direction</i></code>


## `$34`−`$37`: <code>fast_jump_step <i>direction</i></code>


## `$38`: `remove_sliding`


## `$39`: `set_sliding`


## `$3A`: `remove_fixed_facing`


## `$3B`: `fix_facing`


## `$3C`: `show_object`


## `$3D`: `hide_object`


## `$3E`−`$46`: <code>step_sleep <i>length</i></code>


## `$47`: `step_end`


## `$48`: <code>step_48 <i>param</i></code>


## `$49`: `remove_object`


## `$4A`: `step_loop`


## `$4B`: `step_4b`


## `$4C`: `teleport_from`


## `$4D`: `teleport_to`


## `$4E`: `skyfall`


## `$4F`: <code>step_dig <i>length</i></code>


## `$50`: `step_bump`


## `$51`: `fish_got_bite`


## `$52`: `fish_cast_rod`


## `$53`: `hide_emote`


## `$54`: `show_emote`


## `$55`: <code>step_shake <i>displacement</i></code>


## `$56`: `tree_shake`


## `$57`: <code>rock_smash <i>length</i></code>


## `$58`: <code>return_dig <i>length</i></code>


## `$59`: `skyfall_top`