Edit Mario's Collisions?

Mods, guides how to use and install mods go right in here.
Post Reply
User avatar
sgwyspeedrcr
Posts: 49
Joined: 09 Feb 2018, 04:24

Post » 11 Feb 2018, 02:42

Quick blurb: Been modding SMB for 10 years, had no idea about how accurate Mari0 is to the smb engine. I am porting my mod to Mari0, and it's really exciting!! That being said, I'm not too familiar with lua outside of minimal contact with SMBx. Looking at the image below, how do I get Mario's collision to be 20 pixels tall? Currently, it appears to be 17 or 16 pixels tall, so part of his legs fall into the floor.

I'm not sure if this value is determined in quad.lua, or mario.lua. Any help is greatly appreciated!

Image

User avatar
TurretBot
Posts: 4413
Joined: 15 Mar 2012, 23:18
Contact:

Post » 11 Feb 2018, 05:27

mario.lua, it's probably "self.height" (variable name)

User avatar
sgwyspeedrcr
Posts: 49
Joined: 09 Feb 2018, 04:24

Post » 11 Feb 2018, 09:15

Yes!

In mario.lua, I changed lines' 19 and 3279 values from 12/16 to 14/16. Anything larger tends to clip Mario through the floor.

Thanks for the help.

Post Reply