The Daily Click ::. Forums ::. Klik Coding Help ::. Speed of Animation
 

Post Reply  Post Oekaki 
 

Posted By Message

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
2nd July, 2008 at 06:17:34 -

Is it possible to retrieve the speed of an animation at runtime? I don't ideally want to have to hard code the speeds if possible.

 
191 / 9999 * 7 + 191 * 7

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
2nd July, 2008 at 07:03:28 -

There was this for 1.5:
http://www.clickteam.info/extensions/extview.php?id=35

But I doubt it's been remade for MMF2.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
2nd July, 2008 at 07:17:34 -

I suppose you could also run with a counter. Count how long it takes for each frame to be on for and then convert that into MMF's funky animation speed.

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

OMC

What a goofball

Registered
  21/05/2007
Points
  3309

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
2nd July, 2008 at 12:48:09 -

What project are you doing this for? You maybe be able to keep track of the speed as you go if you change it arbitrarily during runtime... If you explain the exact use of animation speeds, it may be a bit easier to help.

 

  		
  		

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
2nd July, 2008 at 14:53:44 -

It's for a game which uses bullet time. It works perfectly right now, but it requires that the developer hard codes the base frame speeds into it (so I know my walking anim runs at a speed of 50, so I can set the speed to '50 * Time Ratio').

But it wouldn't work if i had variable animation speeds (depending on how fast you walk, for instance).

 
191 / 9999 * 7 + 191 * 7

OMC

What a goofball

Registered
  21/05/2007
Points
  3309

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
2nd July, 2008 at 15:06:02 -

I see... is it a platforming or 8 dir game? I assume from your level of MMF awesomeness, coupled with clues in your post, that you're using a custom engine. It seems to me you could just use the information from the movement. For instance, if you have a counter holding the speed of the character, just figure out the conversion rate and use it... Or maybe I misunderstood you somewhere... If you're using the built-in movement the animation speed would likely be the same as the movement speed, wouldn't it?

 

  		
  		

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
2nd July, 2008 at 20:20:11 -

I think you should just ask to be able to retrieve animation speed in the next build rather than looking for work arounds. It really is something that you'd think would be in there. They may even do it for the next beta if you're quick.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

OMC

What a goofball

Registered
  21/05/2007
Points
  3309

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
2nd July, 2008 at 20:34:30 -

Dines! You have 666 points! Heh, I suppose that would be the most intelligent thing to do.

 

  		
  		

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
3rd July, 2008 at 10:05:24 -

Lol! I'd better post another article, heh!

This Bullet-time effect's MUCH better than I thought it'd be, I'm really lovin it!

You can slow stuff down and the sound allllll sllllooooooooowwwwwwsssss doooowwwnn then speeds back up again! Nifty!

And it's a platform!

 
191 / 9999 * 7 + 191 * 7
   

Post Reply



 



Advertisement

Worth A Click