The Daily Click ::. Forums ::. Klik Coding Help ::. animation speed
 

Post Reply  Post Oekaki 
 

Posted By Message

columbo borgi :C



Registered
  07/12/2003
Points
  296

VIP Member
15th January, 2010 at 17:49:01 -

yo
does anybody know the realtion between the MMF's buildt in animation speed and the applications frame per sec?

Image

 
:C

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49566

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
15th January, 2010 at 21:59:35 -

Nope, and that fact is what has caused me to make my own animation system in the past.

 
n/a

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
15th January, 2010 at 22:22:50 -

No sir, sorry Borgi :C

 
Image

Tell 'em Babs is 'ere...

columbo borgi :C



Registered
  07/12/2003
Points
  296

VIP Member
15th January, 2010 at 23:08:39 -

that's a shame :C

 
:C

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
16th January, 2010 at 01:14:33 -

Animation_Frames_Per_Second = Animation_Speed / 2

So a built-in animation speed of 2, is equal to 1 frame per second.
Simple as that

The framerates of animations are completely independent of the application framerate.
ie. Increasing the application framerate will not make animations play any faster.



 
n/a

columbo borgi :C



Registered
  07/12/2003
Points
  296

VIP Member
16th January, 2010 at 13:10:00 -


Originally Posted by Sketchy
Animation_Frames_Per_Second = Animation_Speed / 2

So a built-in animation speed of 2, is equal to 1 frame per second.
Simple as that

The framerates of animations are completely independent of the application framerate.
ie. Increasing the application framerate will not make animations play any faster.




hm. so you mean, if i got a 100 speed animation, and 50fps for the game, the animation will run at 1 animation frame / sec?

 
:C

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
16th January, 2010 at 14:08:56 -

No. If you've got a 100 speed animation, it will always run at 50 animation frames per second. The game fps has no effect on animation speed.

The application fps only determines how many times the main event loop is run each second, and how often the screen is redrawn (unless you tick the "vsync" option I believe).

Having said that...
If the animation speed = 100, that means the frame changes 50 times per second. If the application framerate is only 25fps, it means the animation frame will change twice in the time between screen redraws - meaning it will appear to skip animation frames.

Just to prove my original point...
* Create a new game.
* Create a new active object, with two frames of animation.
* Set it to loop animation, and set the animation speed to 2.
* Set the fps in the application properties to 100.
* Run the game - you'll see the animation frame switches once every second.
* Go back and set the fps in the application properties to 10.
* Run the game again - you'll see it's still exactly the same - 1 frame per second.

Edited by Sketchy

 
n/a

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
17th January, 2010 at 01:21:33 -

I set the frame to an Alterable Value and then always add to it. However much you add to it, dictates it's speed. Very efficient and allows it to depend on framerate which helps a lot in keeping the whole game in sync.

Always Add 0.25 to Alterable Value
Always Set Frame to Alterable Value

Animation now spins at one fourth the games framerate. So a framerate of 60fps would make the animation 15 frames every second.

 
http://www.facebook.com/truediamondgame

columbo borgi :C



Registered
  07/12/2003
Points
  296

VIP Member
18th January, 2010 at 01:33:59 -

thanks guys.

i think i've solve the thing:

always: animation frame = animation frame+1,

now, 1FPS=1animation frame ;>

 
:C

columbo borgi :C



Registered
  07/12/2003
Points
  296

VIP Member
19th January, 2010 at 18:57:09 -

and can you tell me how buildt in movement speed is counted? that is like animation speed too? :\

 
:C

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
20th January, 2010 at 00:02:00 -

Pixels per Second = Speed * Framerate * 0.125
Pixels per Frame = Speed / 8


Edited by Sketchy

 
n/a

Jess Bowers

Cake > Pie

Registered
  09/01/2009
Points
  310

Has Donated, Thank You!GOTM FEB - 2010 - WINNER!GOTW Winner!
21st January, 2010 at 16:42:02 -

Sketchy, that was a fantastic explanation of the animation settings. Thanks for explaining. I've been a bit bewildered for awhile.

 
   

Post Reply



 



Advertisement

Worth A Click