LuaLibraryAnimate.wiki
changeset 2252 70ab0d6cfa85
parent 2251 97c035342b4c
equal deleted inserted replaced
2251:97c035342b4c 2252:70ab0d6cfa85
    43  * `args` is a list containing the arguments that need to be passed to the function given, in the same order
    43  * `args` is a list containing the arguments that need to be passed to the function given, in the same order
    44  * `swh` is an optional boolean value that defaults to `true` and denotes whether the current hedgehog should be switched to the hog given as argument 1 in `args`. You *must* set this to `false` if argument 1 is not a hedgehog.
    44  * `swh` is an optional boolean value that defaults to `true` and denotes whether the current hedgehog should be switched to the hog given as argument 1 in `args`. You *must* set this to `false` if argument 1 is not a hedgehog.
    45 
    45 
    46 Example 1:
    46 Example 1:
    47 <code language="lua">
    47 <code language="lua">
    48 -- This calls `AnimSay(myHog, "Snails! SNAILS!", SAY_SAY, 3000)`,
    48 -- This calls `AnimSay(myHog, "Snails!", SAY_SAY, 3000)`,
    49 -- meaning the hedgehog gear `myHog` will say "Snails!" and set the animation delay to 3000 milliseconds
    49 -- meaning the hedgehog gear `myHog` will say "Snails!" and set the animation delay to 3000 milliseconds
    50 -- Because `swh` is not set, it is true, so `myHog` also becomes the current hedgehog
    50 -- Because `swh` is not set, it is true, so `myHog` also becomes the current hedgehog
    51 local step1 = {func = AnimSay, args = {myHog, "Snails!", SAY_SAY, 3000}}
    51 local step1 = {func = AnimSay, args = {myHog, "Snails!", SAY_SAY, 3000}}
    52 </code>
    52 </code>
    53 
    53