Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by Joncom

I put together a small example of what appears to break ig.Animation.rewind()...

Live example here: http://commins.ca/null-rewind/

Code here: https://github.com/Joncom/null-rewind

In a nutshell, if you do a .gotoFrame() call in the init function of an entity, your .rewind() calls will be fruitless.

EDIT One caveat is that if you do another .gotoFrame call on the animation after the fact, then .rewind() resumes working, but not before then.

1 decade ago by Arantor

What am I supposed to be seeing in the live demo, exactly?

1 decade ago by Joncom

One of the entities is started on the last frame, which appears to break the rewind() function: notice how the two animations don't "rewind" the same?

// Start at the very last frame.
this.currentAnim.gotoFrame(this.currentAnim.sequence.length-1);
Page 1 of 1
« first « previous next › last »