Page 1 of 1

Calculation of distance traveled with movement events in SMBX.

Posted: Sun Jul 21, 2019 12:28 pm
by MasterLuke
I don't know if someone already made this, but I want to make this anyway.

If you want your layer to move with a specific number of blocks this topic is for you!

This is the formula:
distance traveled (in pixels) = duration of movement (in frames) * speed

Notes:
One block equals 32 pixels;
A positive horizontal speed will move to the right;
A negative horizontal speed will move to the left;
A positive horizontal speed will move down;
A negative horizontal speed will move upwards.

I hope I was helpful :D

Re: Calculation of distance traveled with movement events in SMBX.

Posted: Sun Jul 21, 2019 12:44 pm
by TUWAN
so what youre saying is... d=v*t?

Re: Calculation of distance traveled with movement events in SMBX.

Posted: Sun Jul 21, 2019 12:59 pm
by Emral
The SMBX2 editor does this calculation automatically in the events tab, and there's also this pinned topic here.

Re: Calculation of distance traveled with movement events in SMBX.

Posted: Mon Jul 22, 2019 8:34 am
by MasterLuke
Enjl wrote:
Sun Jul 21, 2019 12:59 pm
The SMBX2 editor does this calculation automatically in the events tab, and there's also this pinned topic here.
Actually I knew that, that's why I said in the title "in SMBX" and not "in SMBX2". About SMBX2 is it possible to convert 1.4.5 SMBX levels and worlds to SMBX2?

Re: Calculation of distance traveled with movement events in SMBX.

Posted: Mon Jul 22, 2019 8:35 am
by sammerbro
MasterLuke wrote:
Mon Jul 22, 2019 8:34 am
About SMBX2 is it possible to convert 1.4.5 SMBX levels and worlds to SMBX2?
No. 1.4 is not the same as SMBX2.

Re: Calculation of distance traveled with movement events in SMBX.

Posted: Wed Jul 24, 2019 3:13 pm
by Hoeloe
MasterLuke wrote:
Mon Jul 22, 2019 8:34 am
About SMBX2 is it possible to convert 1.4.5 SMBX levels and worlds to SMBX2?
Sort of. You can load them into PGE and save them as lvlx files, but you will have to remove all the 38A elements from them.