What it does
animation.crossFadeGroups takes from, to, duration and loop. loop is optional.
Signature
animation.crossFadeGroups(from, to, duration, loop?)Arguments
fromtodurationloopoptional
Example · generated
function start() { animation.crossFadeGroups(1, 1, 1);}animation.crossFadeGroups is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.