Animation speed help!

Need help with any SMBX game-related issues? Ask your questions here.

Moderator: Userbase Moderators

TheIronWarrior
Swooper
Swooper
Posts: 60
Joined: Wed Dec 24, 2014 1:55 am

Animation speed help!

Postby TheIronWarrior » Sat Jun 11, 2016 6:28 pm

How would someone change the animation speed so that one frame lasts exactly 0.2 seconds? Is it even possible?

PixelPest
Link
Link
Posts: 7111
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Re: Animation speed help!

Postby PixelPest » Sat Jun 11, 2016 6:36 pm


TheIronWarrior
Swooper
Swooper
Posts: 60
Joined: Wed Dec 24, 2014 1:55 am

Re: Animation speed help!

Postby TheIronWarrior » Sat Jun 11, 2016 6:42 pm

So... framespeed=0.2?

PixelPest
Link
Link
Posts: 7111
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Re: Animation speed help!

Postby PixelPest » Sat Jun 11, 2016 6:43 pm

No. Read the section on framespeed values in the main post of that thread I linked

TheIronWarrior
Swooper
Swooper
Posts: 60
Joined: Wed Dec 24, 2014 1:55 am

Re: Animation speed help!

Postby TheIronWarrior » Sat Jun 11, 2016 7:40 pm

PixelPest wrote:No. Read the section on framespeed values in the main post of that thread I linked
Those are just percents. The default framespeed is 123.07 or something. How would I calculate the value so it is exactly 0.2 seconds?

Imaynotbehere4long
Boomerang Bro
Boomerang Bro
Posts: 1389
Joined: Thu Jan 23, 2014 3:00 pm

Re: Animation speed help!

Postby Imaynotbehere4long » Sat Jun 11, 2016 7:50 pm

TheIronWarrior wrote:So... framespeed=0.2?
Actually, I think it would be framespeed=14. I'm basing this on the fact that framespeed changes frames per second, and according to this thread, there are 14 frames in 0.2 seconds.

Valtteri
Birdo
Birdo
Posts: 2150
Joined: Sun Dec 01, 2013 1:16 pm

Re: Animation speed help!

Postby Valtteri » Sun Jun 12, 2016 9:04 am

As the framespeed is actually 64.1025 641025 641025..., framespeed=13 would be closer because 0.2 * 64.1025 641025 641025... = 12.8205 128205 128205... ≈ 13.

TheIronWarrior
Swooper
Swooper
Posts: 60
Joined: Wed Dec 24, 2014 1:55 am

Re: Animation speed help!

Postby TheIronWarrior » Sun Jun 12, 2016 2:36 pm

Valtteri wrote:As the framespeed is actually 64.1025 641025 641025..., framespeed=13 would be closer because 0.2 * 64.1025 641025 641025... = 12.8205 128205 128205... ≈ 13.
But not exactly, right?

Valtteri
Birdo
Birdo
Posts: 2150
Joined: Sun Dec 01, 2013 1:16 pm

Re: Animation speed help!

Postby Valtteri » Sun Jun 12, 2016 3:39 pm

13 is not exactly 5 frames per second but it's close. It's the closest you can get without decimals. SMBX will also accept framespeed=12.8205128 which is more accurate, but decimals will cause SMBX to crash on non-English computers so I suggest you use framespeed=13 if you want a larger audience for your level.

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9890
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Animation speed help!

Postby Emral » Sun Jun 12, 2016 3:49 pm

Valtteri wrote:but decimals will cause SMBX to crash on non-English computers so I suggest you use framespeed=13 if you want a larger audience for your level.
I think lunalua fixes this.

TheIronWarrior
Swooper
Swooper
Posts: 60
Joined: Wed Dec 24, 2014 1:55 am

Re: Animation speed help!

Postby TheIronWarrior » Mon Jun 13, 2016 3:55 pm

Valtteri wrote:but decimals will cause SMBX to crash on non-English computers
Wait... ...What does language have to with decimals and crashing?

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9890
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Animation speed help!

Postby Emral » Mon Jun 13, 2016 3:58 pm

TheIronWarrior wrote:
Valtteri wrote:but decimals will cause SMBX to crash on non-English computers
Wait... ...What does language have to with decimals and crashing?
Some languages use . as the decimal point, others use ,

TheIronWarrior
Swooper
Swooper
Posts: 60
Joined: Wed Dec 24, 2014 1:55 am

Re: Animation speed help!

Postby TheIronWarrior » Mon Jun 13, 2016 4:50 pm

Enjl wrote:
TheIronWarrior wrote:
Valtteri wrote:but decimals will cause SMBX to crash on non-English computers
Wait... ...What does language have to with decimals and crashing?
Some languages use . as the decimal point, others use ,
Oh. Will using commas prevent it crashing then? Probably not. Sorry, I am just speaking out the first thing that comes to mind.

Imaynotbehere4long
Boomerang Bro
Boomerang Bro
Posts: 1389
Joined: Thu Jan 23, 2014 3:00 pm

Re: Animation speed help!

Postby Imaynotbehere4long » Mon Jun 13, 2016 4:53 pm

TheIronWarrior wrote:Will using commas prevent it crashing then?
If a period will cause it to crash for people who's decimal is a comma, then a comma will cause it to crash for people who's decimal is a period.


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari