Page 1 of 1

Animation speed help!

Posted: Sat Jun 11, 2016 6:28 pm
by TheIronWarrior
How would someone change the animation speed so that one frame lasts exactly 0.2 seconds? Is it even possible?

Re: Animation speed help!

Posted: Sat Jun 11, 2016 6:36 pm
by PixelPest

Re: Animation speed help!

Posted: Sat Jun 11, 2016 6:42 pm
by TheIronWarrior
So... framespeed=0.2?

Re: Animation speed help!

Posted: Sat Jun 11, 2016 6:43 pm
by PixelPest
No. Read the section on framespeed values in the main post of that thread I linked

Re: Animation speed help!

Posted: Sat Jun 11, 2016 7:40 pm
by TheIronWarrior
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?

Re: Animation speed help!

Posted: Sat Jun 11, 2016 7:50 pm
by Imaynotbehere4long
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.

Re: Animation speed help!

Posted: Sun Jun 12, 2016 9:04 am
by Valtteri
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.

Re: Animation speed help!

Posted: Sun Jun 12, 2016 2:36 pm
by TheIronWarrior
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?

Re: Animation speed help!

Posted: Sun Jun 12, 2016 3:39 pm
by Valtteri
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.

Re: Animation speed help!

Posted: Sun Jun 12, 2016 3:49 pm
by Enjl
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.

Re: Animation speed help!

Posted: Mon Jun 13, 2016 3:55 pm
by TheIronWarrior
Valtteri wrote:but decimals will cause SMBX to crash on non-English computers
Wait... ...What does language have to with decimals and crashing?

Re: Animation speed help!

Posted: Mon Jun 13, 2016 3:58 pm
by Enjl
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 ,

Re: Animation speed help!

Posted: Mon Jun 13, 2016 4:50 pm
by TheIronWarrior
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.

Re: Animation speed help!

Posted: Mon Jun 13, 2016 4:53 pm
by Imaynotbehere4long
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.