SpritesheetAnimator.getCurrentAnimationID - HermesPasser/Ramu GitHub Wiki

string SpritesheetAnimator.getCurrentAnimationID()

Description

Get the ID of current animation.

You can test this snippet of code here.

let animator = new SpritesheetAnimator(10, 10, 35, 35);
animator.setCurrentAnimation('anim1');
console.log(animator.getCurrentAnimationID());