Method: setAllFps

Sets all the animations assigned to an entity to the specified FPS.
setAllFps (Number fps)
  • Numberfps The number of frames per second the animations should play at.
Returns *

Set all entity animations to specified FPS

// Create an entity, add the animation component and define
// a couple of animations with an FPS of 25
var entity = new IgeEntity()
    .animation.define('anim1', [1, 2, 3, 4], 25, -1);
    .animation.define('anim2', [5, 6, 7, 8], 25, -1);

// Change the FPS of all animations to 12
© Copyright 2013 Irrelon Software Limited. All Rights Reserved. UK Registered Company Number: 07522767
Isogenic (ī´sōjen´ik): Adj originating from a common source; possessing the same genetic composition.
Strange Things Happen at the One Two Point