BBMOD_Animation

constructor

new BBMOD_Animation(_file[, _sha1])

Description

An animation which can be played using BBMOD_AnimationPlayer.

Arguments

Name Type Description
_file string The "*.bbanim" animation file to load.
_sha1 string Expected SHA1 of the file. If the actual one does not match with this, then the model will not be loaded.

Properties

Name Description
Duration The duration of the animation (in tics).
Nodes An array of animation nodes.
TicsPerSecond Number of animation tics per second.
TransitionIn Duration of transition into this animation (in seconds). Must be a value greater or equal to 0!
TransitionOut Duration of transition out of this animation (in seconds). Must be a value greater or equal to 0!
Version The version of the animation file.

Throws

Example

try
{
    anim_walk = new BBMOD_Animation("walk.bbanim");
}
catch (e)
{
    // The animation failed to load!
}

Copyright © 2020, BlueBurn. Built on November 30, 2020 using GMDoc.