145 === <tt>onDown()</tt> === |
145 === <tt>onDown()</tt> === |
146 |
146 |
147 <blockquote>This function is called when you press the down key. |
147 <blockquote>This function is called when you press the down key. |
148 </blockquote> |
148 </blockquote> |
149 |
149 |
|
150 === <tt>onAttackUp()</tt> (0.9.17) === |
|
151 === <tt>onDownUp()</tt> (0.9.17) === |
|
152 === <tt>onHogAttack()</tt> (0.9.17) === |
|
153 === <tt>onLeftUp()</tt> (0.9.17) === |
|
154 === <tt>onPreciseUp()</tt> (0.9.17) === |
|
155 === <tt>onRightUp()</tt> (0.9.17) === |
|
156 === <tt>onSetWeapon()</tt> (0.9.17) === |
|
157 === <tt>onSlot()</tt> (0.9.17) === |
|
158 === <tt>onSwitch()/tt> (0.9.17) === |
|
159 === <tt>onTaunt()/tt> (0.9.17) === |
|
160 === <tt>onTimer()/tt> (0.9.17) === |
|
161 === <tt>onUpUp()/tt> (0.9.17) === |
|
162 |
|
163 |
150 == Functions for creating gears == |
164 == Functions for creating gears == |
151 |
165 |
152 === <tt>!AddGear(x, y, gearType, state, dx, dy, timer)</tt> === |
166 === <tt>!AddGear(x, y, gearType, state, dx, dy, timer)</tt> === |
153 |
167 |
154 <blockquote>This creates a new gear at position x,y (measured from top left) of kind gearType (see [GearTypes Gear Types]). The initial velocities are dx and dy. All arguments are numbers. The function returns the uid of the gear created. |
168 <blockquote>This creates a new gear at position x,y (measured from top left) of kind gearType (see [GearTypes Gear Types]). The initial velocities are dx and dy. All arguments are numbers. The function returns the uid of the gear created. |