I am using sprites for my game in Canvas-Engine and is there possible way to play animation backwards. If I put frames from 10 to 0 it does not work.
animations:{ frames: [10, 0] }
Or is there way to mirror the image at each loop? But in some sprites its not a option. Thanks.
I've no idea what you want (you have to be much more specific in your question!)
But I did this:
http://jsfiddle.net/neuroflux/qs37w/2/
It basically, animates from frame 0 to frame 10 then runs a switch to reverse it.
This runs as fast as the requestAnimFrame
runs.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.