Characters

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

Moderator: Userbase Moderators

TheGraySkin
Goomba
Goomba
Posts: 2
Joined: Thu Aug 19, 2021 7:34 pm
Pronouns: He

Characters

Postby TheGraySkin » Thu Aug 19, 2021 7:40 pm

How do the characters physics work in smbx2? Are Mario Luigi, Peach and Toad All like smb2 players? And how do you automatically change them to their smw look?

MrDoubleA
Edward
Edward
Posts: 394
Joined: Mon Aug 20, 2018 7:02 am
Flair: How much munchers?

Re: Characters

Postby MrDoubleA » Thu Aug 19, 2021 8:12 pm

Each character has their own hardcoded acceleration and deceleration speeds. Toad and Peach also get their own maximum run/walk speed differences, and Luigi is the only one with a different jump.

As for costumes, create a file called "luna.lua" in your episode/level folder and put the following code into it:

Code: Select all

Player.setCostume(CHARACTER_MARIO,"SMW-Mario",true)
Player.setCostume(CHARACTER_LUIGI,"SMW-Luigi",true)
Player.setCostume(CHARACTER_TOAD,"SMW-Toad",true)

TheGraySkin
Goomba
Goomba
Posts: 2
Joined: Thu Aug 19, 2021 7:34 pm
Pronouns: He

Re: Characters

Postby TheGraySkin » Thu Aug 19, 2021 8:26 pm

Can you tell me how to change the properties of the characters? I don't know how to do lua. I'm trying to change the smw look to have smb2 physics.

MrDoubleA
Edward
Edward
Posts: 394
Joined: Mon Aug 20, 2018 7:02 am
Flair: How much munchers?

Re: Characters

Postby MrDoubleA » Thu Aug 19, 2021 8:49 pm

The ability to change character physics is rather limited at the moment. You can try out playerphysicspatch.lua, but otherwise you'll have to write your own code to do it.


Return to “Help and Support”

Who is online

Users browsing this forum: Semrush [Bot] and 3 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari