# HG changeset patch # User Wuzzy # Date 1687351143 0 # Node ID 20ed85eb3d2993bb83f116471e121896af34f52c # Parent c387af3810c6fdee2e9605fa927817f4591f02d0 LuaLibraryAnimate: Add maxMoveTime to AnimMove diff -r c387af3810c6 -r 20ed85eb3d29 LuaLibraryAnimate.wiki --- a/LuaLibraryAnimate.wiki Wed Jun 21 12:34:58 2023 +0000 +++ b/LuaLibraryAnimate.wiki Wed Jun 21 12:39:03 2023 +0000 @@ -195,8 +195,8 @@ ==== `AnimTurn(hog, dir)` ==== Makes `hog` face in direction `dir`, where `dir` equals either `"Right"` or `"Left"`. -==== `AnimMove(hog, dir, x, y)` ==== -Makes `hog` walk in direction `dir` (`"Right"` or `"Left"`) until either its horizontal coordinate equals `x` or its vertical coordinate equals `y`. +==== `AnimMove(hog, dir, x, y, maxMoveTime)` ==== +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. ==== `AnimJump(hog, jumpType)` ==== Makes `hog` perform a jump of type `jumpType`, where `jumpType` is one of: