View Single Post
  #1  
Old 10-17-2006, 10:40 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
getanisprites() gani function?

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 (
athis.list_ani_sprites) {
  if (
a.image == player.swordimg) {
    
findimg(1).image "crystalflash.png";
    
findimg(1).a.x;
    
findimg(1).a.y;
  }