photonstorm/phaser — pull request #56 by cocoademon (2013-09-20 07:52:10+00:00)
Title: Some small animation fixes

When adding an animation using frame indexes, the getFrameIndexes function was attempting to access the .index property of the elements of the frames array, which are integers.

I've switched to using the raw frame index, which works for my trivial case, but perhaps it should be:

output.push(this.getFrame(frames[i]).index);

---

Also, getFrames (which doesn't appear to be used anywhere) was looping through the wrong array.

There doesn't appear to be a test case for this, however changing the sprite sheet example to include explicit frame numbers should demonstrate this.