animation.playGroup

Section: Animation Groups

What it does

animation.playGroup plays Group on an animation object. It takes name and an options object.

Signature

animation.playGroup(name, { loop, speed, from, to, weight, blending, blendingSpeed })

Arguments

  • name
  • { loop, speed, from, to, weight, blending, blendingSpeed }

    Keys:loopspeedfromtoweightblendingblendingSpeed

Example · generated

function start() {  animation.playGroup('main', { loop: true, speed: 1, from: 1 });}

animation.playGroup 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.

22 members in animation