LuaLibraryAnimate.wiki
changeset 2241 20ed85eb3d29
parent 2240 c387af3810c6
child 2242 031a5b86e533
equal deleted inserted replaced
2240:c387af3810c6 2241:20ed85eb3d29
   193 Plays the sound `sound` and increases the wait time by `time`.
   193 Plays the sound `sound` and increases the wait time by `time`.
   194 
   194 
   195 ==== `AnimTurn(hog, dir)` ====
   195 ==== `AnimTurn(hog, dir)` ====
   196 Makes `hog` face in direction `dir`, where `dir` equals either `"Right"` or `"Left"`.
   196 Makes `hog` face in direction `dir`, where `dir` equals either `"Right"` or `"Left"`.
   197 
   197 
   198 ==== `AnimMove(hog, dir, x, y)` ====
   198 ==== `AnimMove(hog, dir, x, y, maxMoveTime)` ====
   199 Makes `hog` walk in direction `dir` (`"Right"` or `"Left"`) until either its horizontal coordinate equals `x` or its vertical coordinate equals `y`.
   199 Makes `hog` walk in direction `dir` (`"Right"` or `"Left"`) until either its horizontal coordinate equals `x` or its vertical coordinate equals `y`. `maxMoveTime` is optional. If specified, the animation will automatically end if this number of milliseconds have passed.
   200 
   200 
   201 ==== `AnimJump(hog, jumpType)` ====
   201 ==== `AnimJump(hog, jumpType)` ====
   202 Makes `hog` perform a jump of type `jumpType`, where `jumpType` is one of:
   202 Makes `hog` perform a jump of type `jumpType`, where `jumpType` is one of:
   203 
   203 
   204  * `"long"`: Long jump
   204  * `"long"`: Long jump