Page 1 of 1

Characters

Posted: Thu Aug 19, 2021 7:40 pm
by TheGraySkin
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?

Re: Characters

Posted: Thu Aug 19, 2021 8:12 pm
by MrDoubleA
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)

Re: Characters

Posted: Thu Aug 19, 2021 8:26 pm
by TheGraySkin
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.

Re: Characters

Posted: Thu Aug 19, 2021 8:49 pm
by MrDoubleA
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.