LHAnimationsProtocol Reference

LHAnimationsProtocol.lua

Overview

LevelHelper 2 nodes that can be animated conform to this protocol.

Instance Methods

getActiveAnimation

local  getActiveAnimation()
Parameters
animObj

The animation object that is about to get activated.

Discussion

Returns the active animation on a node or nil if no active animation. A LHAnimation object.

Declared In
LHAnimationsProtocol.lua

getAnimationWithName

local  getAnimationWithName(animName)
Parameters
animName

The name of the animation that you want returned.

Discussion

Returns the animation with a given name or nil if no animation with the specified name is found on the node. A LHAnimation object.

Declared In
LHAnimationsProtocol.lua

setActiveAnimation

local  setActiveAnimation(animObj)
Parameters
animObj

The animation object that is about to get activated.

Discussion

Set the active animation on a node.

Declared In
LHAnimationsProtocol.lua
Last updated: 2015-3-15

Back to top

Copyright © VLADU BOGDAN DANIEL PFA.