Closed DanMacDonald closed 11 years ago
The current code in the animation.update() function looks like this...
else if(this.loop) { this.index = 0 }
If you change the code to look like this in the "loop" clause, reversed animations will play correctly
else if(this.loop) { if(this.frame_direction < 0) { this.index = this.frames.length -1; } else { this.index = 0; } }
Nice find, can you make a pull-request and maybe a simple test-case for it? :)
Sure! https://github.com/ippa/jaws/pull/77
Thanks for this cool little API, I'm enjoying it. :)
The current code in the animation.update() function looks like this...
If you change the code to look like this in the "loop" clause, reversed animations will play correctly