Hi, I am unsure of how to pause a sprite on a specific image. By image I mean like a certain part of the animation clip.
So when the bird in my game is falling, I’m currently using this code to pause the animation:
var zrot = pc.math.clamp(this.velocity, -2, -0.75);
zrot += 1;
this.entity.setLocalEulerAngles(0, 0, zrot * 90);
var pos1;
pos1 = this.entity.getEulerAngles();
if (pos1.z < -60) {
this.entity.sprite.pause();
} else {
this.entity.sprite.resume();
}
This works ok, it’s just I need it to pause when it hits a certain part of the animation. Thanks for any help