# HG changeset patch # User Wuzzy # Date 1559058544 -7200 # Node ID 7732013ce64c478c3e9d4d3d528bab1057cef4e9 # Parent 4c40266fae9735ce596a7e6a50805f505422d4fa Animate library: Document way to speed up animations for testing purposes diff -r 4c40266fae97 -r 7732013ce64c share/hedgewars/Data/Scripts/Animate.lua --- a/share/hedgewars/Data/Scripts/Animate.lua Tue May 28 17:04:48 2019 +0200 +++ b/share/hedgewars/Data/Scripts/Animate.lua Tue May 28 17:49:04 2019 +0200 @@ -8,6 +8,12 @@ local skipping local baseInputMask = 0xFFFFFFFF local extraInputMask = baseInputMask + +-- DEBUGGING STUFF -- +--[[ Number of animation ticks to decrease whenever AnimUnWait() + is called (usually every game tick). Default: 1 + Increase this number to increase overall animation speed. ]] +local animSpeed = 1 --------------------------------Animation--------------------------------- --------------------------(In-game cinematics)---------------------------- @@ -125,7 +131,10 @@ function AnimUnWait() if globalWait > 0 then - globalWait = globalWait - 1 + globalWait = globalWait - animSpeed + if globalWait < 0 then + globalWait = 0 + end end end