>
> > yes, just like you did,
> > first step, create a new sprite object load images from your file and named.
> > secondly, create a global variable, on the start of layout, set this variable to random(sprite.animationFrameCount+1)
> > last, set sprite frame to variable.
> >
> Thank you so much.One question,I want to know how to set sprite frame to variable?Do you mean use the sprite event "load image from url"?Or any other way?
>
... i mean when you create a sprite object, import frames from your file and choose all your images, then set the event that "on the start of layout -- action: set sprite frame to int(random(sprite.framecount+1))"
Thank u so much.It is work