LuaLibraryAnimate.wiki
changeset 2243 e58371e25834
parent 2242 031a5b86e533
child 2244 e8e1c0dd32e5
equal deleted inserted replaced
2242:031a5b86e533 2243:e58371e25834
   166 Internally, the input mask you provide is simply AND-ed with the input mask used by the Animate library. Otherwise, this function works like `SetInputMask`.
   166 Internally, the input mask you provide is simply AND-ed with the input mask used by the Animate library. Otherwise, this function works like `SetInputMask`.
   167 
   167 
   168 If you call `SetInputMask` directly, note that it might get quickly overwritten by the Animate library!
   168 If you call `SetInputMask` directly, note that it might get quickly overwritten by the Animate library!
   169 
   169 
   170 === Cinematic functions ===
   170 === Cinematic functions ===
   171 These are the functions you can specify in animation steps.
   171 These are the functions you can specify in animation steps. In all functions except `AnimWait`, the `gear` argument switches the `CurrentHedgehog` to `gear` and follows it.
   172 
   172 
   173 ==== `AnimSwitchHog(gear)` ====
   173 ==== `AnimSwitchHog(gear)` ====
   174 Switches to `gear` and follows it.
   174 Switches the `CurrentHedgehog` to `gear` and follows it.
   175 
   175 
   176 ==== `AnimGiveState(gear, state)` ====
   176 ==== `AnimGiveState(gear, state)` ====
   177 Sets the [States gear state] of `gear` to `state` (full bitmask).
   177 Sets the [States gear state] of `gear` to `state` (full bitmask).
   178 
   178 
   179 ==== `AnimRemoveState(gear, state)` ====
   179 ==== `AnimRemoveState(gear, state)` ====
   180 Removes the [States gear state] `state` from `gear`.
   180 Removes the [States gear state] `state` from `gear`.
   181 
   181 
   182 ==== `AnimWait(gear, time)` ====
   182 ==== `AnimWait(gear, time)` ====
   183 Increases the wait time by `time`. `gear` is just for compatibility with `ShowAnimation`.
   183 Increases the wait time by `time` (in milliseconds) without changing the `CurrentHedgehog`. The `gear` argument is ignored (it exists for compability with `ShowAnimation).
       
   184 
       
   185 ==== `AnimGearWait(gear, time)` ====
       
   186 Increases the wait time by `time` (in milliseconds) and changes the `CurrentHedgehog` to `gear`.
   184 
   187 
   185 ==== `AnimSay(gear, text, manner, time)` ====
   188 ==== `AnimSay(gear, text, manner, time)` ====
   186 Calls `HogSay` with the first three arguments and increases the wait time by `time`.
   189 Calls `HogSay` with the first three arguments and increases the wait time by `time`.
   187 
   190 
   188 Example:
   191 Example: