Page 1 of 1

AnimPlayer.hws example bug

Posted: Tue Feb 25, 2014 9:31 am
by lazi
As I viewed some YAFA animations with the AnimPlayer example figured out that there is a bug in the player script.

It can be triggered by doing a resize at the last frame position with the Esprita.anim or dragging the dragbar right out the window with any YAFA anims.

It can be fixed by insert these lines before line 58 (GetAnimFrame...):

frame=Min(frame,numframes)
frame=Max(frame,1)

However maybe the official fix will be something else. :)

Re: AnimPlayer.hws example bug

Posted: Wed Feb 26, 2014 4:48 pm
by airsoftsoftwair
Right, thanks for the report :)