Calculation of distance traveled with movement events in SMBX.

General discussion about Super Mario Bros. X.

Moderator: Userbase Moderators

MasterLuke
Goomba
Goomba
Posts: 2
Joined: Thu Jul 18, 2019 11:37 am
Flair: Yeah boi

Calculation of distance traveled with movement events in SMBX.

Postby MasterLuke » Sun Jul 21, 2019 12:28 pm

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

TUWAN
Flurry
Flurry
Posts: 181
Joined: Sun Mar 06, 2016 11:50 am
Pronouns: she/her

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

Postby TUWAN » Sun Jul 21, 2019 12:44 pm

so what youre saying is... d=v*t?

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

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

Postby Emral » 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.

MasterLuke
Goomba
Goomba
Posts: 2
Joined: Thu Jul 18, 2019 11:37 am
Flair: Yeah boi

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

Postby MasterLuke » Mon Jul 22, 2019 8:34 am

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?

sammerbro
Nipper
Nipper
Posts: 404
Joined: Sat Sep 22, 2018 9:53 am
Flair: playing and making SMBX stuff
Contact:

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

Postby sammerbro » Mon Jul 22, 2019 8:35 am

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.

Hoeloe
Phanto
Phanto
Posts: 1465
Joined: Sat Oct 03, 2015 6:18 pm
Flair: The Codehaus Girl
Pronouns: she/her

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

Postby Hoeloe » Wed Jul 24, 2019 3:13 pm

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.


Return to “General”

Who is online

Users browsing this forum: Petal [Bot], S_Koopa0 and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari