LuaLibraryAnimate.wiki
changeset 2242 031a5b86e533
parent 2241 20ed85eb3d29
child 2243 e58371e25834
equal deleted inserted replaced
2241:20ed85eb3d29 2242:031a5b86e533
    69 You are expected to add to the list of animatinons with `AddAnim`. If the script is animating, this animation will be played after all the others have been played. If the script is not animating, the animation will be played immediately. (Assuming you have correctly added the boilerplate code mentioned at the beginning of this page.)
    69 You are expected to add to the list of animatinons with `AddAnim`. If the script is animating, this animation will be played after all the others have been played. If the script is not animating, the animation will be played immediately. (Assuming you have correctly added the boilerplate code mentioned at the beginning of this page.)
    70 
    70 
    71 Animations are basically cut scenes. During animation, Cinematic Mode is enabled (see `SetCinematicMode` which is part of the main Lua API) and most player input is blocked. Animations can cause various things to happen, like move hedgehogs, show speech bubbles, explode the landscape or just call (almost) any function. During an animation, the player can only watch or optionally skip (details later). The player can still move the camera.
    71 Animations are basically cut scenes. During animation, Cinematic Mode is enabled (see `SetCinematicMode` which is part of the main Lua API) and most player input is blocked. Animations can cause various things to happen, like move hedgehogs, show speech bubbles, explode the landscape or just call (almost) any function. During an animation, the player can only watch or optionally skip (details later). The player can still move the camera.
    72 
    72 
    73 There is also an internal wait time. It starts at 0 and a few cinematic functions as well as `AnimWait` can increase this time. The wait time counts down to 0, during which the script waits to execute the next animation step. Adding to the wait time is important to time your animation correctly.
    73 There is also an internal wait time. It starts at 0 and a few cinematic functions as well as `AnimWait` can increase this time. The wait time counts down to 0, during which the script waits to execute the next animation step. Adding to the wait time is important to time your animation correctly.
       
    74 
       
    75 Once all animations in the animation list have been played, the game returns to the *Not Animating* state and behaves normally again.
    74 
    76 
    75 == Function reference ==
    77 == Function reference ==
    76 === Cinematic handling ===
    78 === Cinematic handling ===
    77 
    79 
    78 ==== `AnimInit([startAnimating])` ====
    80 ==== `AnimInit([startAnimating])` ====