setAnimationSpeed

Script::setAnimationSpeed

Sets the speed of an Animation played by an Entity.

Declaration

void setAnimationCurrentTime(Entity entity, float newSpeed);

Parameters

Name

Type

Description

entity

Entity

The Entity the Animation is played on. It must have a Renderable Component.

newSpeed

float

The speed to play the current Animation at.

Returns

None.

Notes

If newSpeed is negative, the animation plays in reverse.