comparison 06/anm.xml @ 9:6d47bfc23c64

Document a few more ANM instructions
author Thibaut Girka <thib@sitedethib.com>
date Tue, 23 Aug 2011 15:28:31 +0200
parents 2a7b9d62c0c4
children d0e992b282a0
comparison
equal deleted inserted replaced
8:c5b074b0abbd 9:6d47bfc23c64
36 </params> 36 </params>
37 </op> 37 </op>
38 38
39 <op> 39 <op>
40 <num>4</num> 40 <num>4</num>
41 <params> 41 <name>set_color</name>
42 <param type="S"></param> 42 <params>
43 <param type="c">g</param>
44 <param type="c">b</param>
45 <param type="c">r</param>
46 <param type="c">padding</param>
43 </params> 47 </params>
44 </op> 48 </op>
45 49
46 <op> 50 <op>
47 <num>5</num> 51 <num>5</num>
48 <name>jump</name> 52 <name>jump</name>
49 <params> 53 <params>
50 <param type="S">relative offset of the instruction to jump to</param> 54 <param type="S">absolute offset within the script of the instruction to jump to</param>
51 </params> 55 </params>
52 <desc>Jump to the given instruction and reset the frame counter to the instruction's frame.</desc> 56 <desc>Jump to the given instruction and reset the frame counter to the instruction's frame.</desc>
53 </op> 57 </op>
54 58
55 <op> 59 <op>
79 </params> 83 </params>
80 </op> 84 </op>
81 85
82 <op> 86 <op>
83 <num>11</num> 87 <num>11</num>
84 <params> 88 <name>set_scale_speed</name>
85 <param type="f"></param> 89 <params>
86 <param type="f"></param> 90 <param type="f">sx speed</param>
91 <param type="f">sy speed</param>
87 </params> 92 </params>
88 </op> 93 </op>
89 94
90 <op> 95 <op>
91 <num>12</num> 96 <num>12</num>
92 <params> 97 <name>fade</name>
93 <param type="S"></param> 98 <params>
94 <param type="S"></param> 99 <param type="f">new_alpha</param>
100 <param type="S">duration</param>
95 </params> 101 </params>
96 </op> 102 </op>
97 103
98 <op> 104 <op>
99 <num>13</num> 105 <num>13</num>
109 <desc>When this instruction is called, the sprite is a still image: the script stops without the sprite disappearing.</desc> 115 <desc>When this instruction is called, the sprite is a still image: the script stops without the sprite disappearing.</desc>
110 </op> 116 </op>
111 117
112 <op> 118 <op>
113 <num>16</num> 119 <num>16</num>
114 <params> 120 <name>set_random_sprite</name>
115 <param type="S"></param> 121 <params>
116 <param type="S"></param> 122 <param type="S">id of the first sprite</param>
117 </params> 123 <param type="S">number of sprites</param>
124 </params>
125 <desc>Select a sprite in the [[id, id+number)) range.</desc>
118 </op> 126 </op>
119 127
120 <op> 128 <op>
121 <num>17</num> 129 <num>17</num>
122 <params> 130 <params>
217 </params> 225 </params>
218 </op> 226 </op>
219 227
220 <op> 228 <op>
221 <num>30</num> 229 <num>30</num>
222 <params> 230 <name>scale_in</name>
223 <param type="f"></param> 231 <params>
224 <param type="f"></param> 232 <param type="f">new_sx</param>
225 <param type="S"></param> 233 <param type="f">new_sy</param>
226 </params> 234 <param type="S">duration</param>
235 </params>
236 <desc>Sets the scale factor to (new_sx, new_sy) in duration frames.</desc>
227 </op> 237 </op>
228 238
229 <op> 239 <op>
230 <num>31</num> 240 <num>31</num>
231 <params> 241 <params>