IgeAnimationComponent

Method: setFps

Sets the specified animation's FPS.
setFps (String id, Number fps)
  • Stringid The ID of the animation to alter the FPS for.
  • Numberfps The number of frames per second the animation should play at.
Returns *

Set the specified animation's FPS

// Create an entity, add the animation component and define
// an animation with an FPS of 25
var entity = new IgeEntity()
    .addComponent(IgeAnimationComponent)
    .animation.define('anim1', [1, 2, 3, 4], 25, -1);

// Change the FPS to 12
entity.animation.setFps('anim1', 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