Playing Animated Sprite Frame By Frame . . .
by ken · in iTorque 2D · 05/28/2011 (10:59 pm) · 5 replies
Hi guys,
I have an animated sprite in my scene that must play animation by player finger so I want to play animated sprite frame by frame.
how can I do that?
I have an animated sprite in my scene that must play animation by player finger so I want to play animated sprite frame by frame.
how can I do that?
#2
Is there any way to playing animated sprite frame by frame?
05/29/2011 (8:47 am)
Thank you Alain for your reply! Is that what you mean: I create multi static sprites in same place and use them as separated frames and control them with visibility option (turning off/on visibilities)? Is there any way to playing animated sprite frame by frame?
#3
I mean create one static sprite that uses a sprite sheet and then use the setFrame function (from script) to cycle through your animation.
05/29/2011 (9:19 am)
No,I mean create one static sprite that uses a sprite sheet and then use the setFrame function (from script) to cycle through your animation.
#4
05/29/2011 (10:50 am)
So you have a sheet, that is say 256x256, with 16 cells on it. Import it in, break it up into cells. then, do not create an animation, just pull the staticSprite on say frame 1. Then on event, change frame to frame 2 or whatever.
#5
05/29/2011 (9:16 pm)
Thank you guys!
Torque Owner Alain Labrie
Ware-Wolf Games