View unanswered posts | View active topics It is currently Thu Jan 09, 2025 11:43 pm



Reply to topic  [ 6 posts ] 
 Clown Shield - 21 frames 
Author Message
User avatar

Joined: Mon Apr 06, 2009 9:41 am
Posts: 712
Location: New York
Reply with quote
Post Clown Shield - 21 frames
Image

So I've got this shield all sprited out that will hopefully spring a boxing glove out of it. The problem is that the animation for the shield is 21 frames, and I don't know how to work with so many sprites. In particular I am confused about SpriteAnimDuration. Any help?

The file is attached below.


Attachments:
Clown Shield.rte.zip [195.3 KiB]
Downloaded 147 times
Tue Jun 09, 2009 1:06 am
Profile YIM
User avatar

Joined: Mon May 18, 2009 11:48 pm
Posts: 205
Location: The swamps of Stuporia!
Reply with quote
Post Re: Clown Shield - 21 frames
Just a hypothesis, but I would think SpriteAnimDuration would be how long the animation is active before either idling or stopping altogether. Perhaps in intervals.

If there was a way to change the number of frames per second one could possibly change the speed of the animation. I'll check out the code for a better look, though.

EDIT: Well... what if the device itself emitted the glove, which had its animation... and then, uh... you'd still have to determine the animation speed, which could possibly be determined by SpriteAnimDuration... I think. I've really been wondering about variable animation speed myself, honestly.


Tue Jun 09, 2009 4:22 am
Profile YIM
User avatar

Joined: Fri Oct 17, 2008 9:46 pm
Posts: 5212
Location: The Grills Locker.
Reply with quote
Post Re: Clown Shield - 21 frames
SpriteAnimDuration simply defines how long the engine takes to show all the frames in a sprite. It is measured in milisseconds, so a SpriteAnimDuration of 1000 means that your sprite will take a single second to show completely, 2000 = 2 seconds, etc.

To determine how long each frame will last, divide the total duration by the number of frames. For example, 20 frames in 2000 milisseconds would make each frame last 2000/20=100, that is, 0,1 second.


Wed Jun 10, 2009 3:40 pm
Profile WWW
User avatar

Joined: Mon Apr 06, 2009 9:41 am
Posts: 712
Location: New York
Reply with quote
Post Re: Clown Shield - 21 frames
AgentBaron wrote:
Just a hypothesis, but I would think SpriteAnimDuration would be how long the animation is active before either idling or stopping altogether. Perhaps in intervals.

If there was a way to change the number of frames per second one could possibly change the speed of the animation. I'll check out the code for a better look, though.

EDIT: Well... what if the device itself emitted the glove, which had its animation... and then, uh... you'd still have to determine the animation speed, which could possibly be determined by SpriteAnimDuration... I think. I've really been wondering about variable animation speed myself, honestly.



Yeah, that's what I thought SpriteAnimDuration was about. I mean, that's exactly how it sounds. It's just that if I give it a high value, it doesn't seem to play the frames at a slower speed at all. They always play out the same: about 2 or 3 quick and sketchy frames, then nothing.


Wed Jun 10, 2009 6:16 pm
Profile YIM
User avatar

Joined: Mon Apr 06, 2009 9:41 am
Posts: 712
Location: New York
Reply with quote
Post Re: Clown Shield - 21 frames
Anyone?


Fri Jun 12, 2009 9:39 pm
Profile YIM
User avatar

Joined: Mon May 18, 2009 11:48 pm
Posts: 205
Location: The swamps of Stuporia!
Reply with quote
Post Re: Clown Shield - 21 frames
Have you tried giving it a very low number?


Mon Jun 15, 2009 3:26 am
Profile YIM
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.031s | 15 Queries | GZIP : Off ]