away3d / away3d-core-fp11

Away3D engine for Flash Player 11
http://www.away3d.com
Other
642 stars 274 forks source link

SpriteSheetAnimator.currentFrameNumber is 0 based whereas SpriteSheetAnimator.gotoAndStop/gotoAndPlay - starts at 1 #627

Open BigPhilCombo opened 11 years ago

BigPhilCombo commented 11 years ago

These two items should be consistent - because right now to advance to the next frame in an animation you need to do t his

spriteSheet.gotoAndStop( spriteSheet.currentFrameNumber + 2 ) when it should be spriteSheet.gotoAndStop( spriteSheet.currentFrameNumber + 1 )

LucaEstiva commented 11 years ago

But this is Flash ... ? GotoAndStop ? :) mmm

Fabrice3D commented 11 years ago

That's probably because of a required 1 frame delay for texture invalidation. I have some other updates to make to it when I'll have the time. I'll look at this while at it.

LucaEstiva commented 11 years ago

Ops, i'm sorry, this is Away3D !