Is there any chance of something like 'getanisprites(frame)' to return an array with references to the sprites of the specified frame of a gani?
Like, if I use idle.gani and use getanisprites(0), it will get the sprites used in the first frame. Then, I could use the array that was returned to read something like sprite.x, sprite.y, sprite.image, sprite.width, ect.
PHP Code:
this.list_ani_sprites = findani("sword").getanisprites(3);
for (a: this.list_ani_sprites) {
if (a.image == player.swordimg) {
findimg(1).image = "crystalflash.png";
findimg(1).x = a.x;
findimg(1).y = a.y;
}
}