SMBX 1.3 Player Physics

Description: Report bugs of SMBX-38A here.
Forum rules: https://wohlsoft.ru/forum/viewtopic.php?f=64&t=1069
Moderators: Lx Xzit, Yoshi021, 5438A38A, Semi-moderatos, Moderators

Lx Xzit M
Topic author, Moderator
Moderator
Avatar
Lx Xzit M
Topic author, Moderator
Moderator
Reputation: 402
Posts: 757
Joined: 9 Nov 2015
Website

Post #1by Lx Xzit » 7 Jun 2020, 1:40

This wasn't easy to do but I finally made a document that shows the exact values of player physics in SMBX 1.3, so 1.4 can have legacy physics! There are various advantages in this, like major compatibility between versions, major consistency in levels (especially the ones that relies too much on player's physics) and the newcomers would already feel familiar with the new physics. Without further ado, here's the document:

physics-smbx1.3.PNG

player-physics-1.3.xlsx
(10.87 KiB) Downloaded 154 times


Some things I want to recall:
Spoiler
  • The table assumes the player is facing to the right.
  • Mario physics are probably the same but I'd recommend checking again it's values.
  • Luigi's jump works slightly different than the other characters. It's initial jump speed follows this formula: -5.74 - abs(char(1).xsp)/1.8868. Then, his speed-y will increase until it reach the value of the jump/spinjump formula. So for example, Luigi's jump speed (when his xsp = 0) is -5.74, and his jump/spinjump tick speed according to the formula on the table is -5.34. This means Luigi's initial jump speed will be -5.74 and will increase to -5.34.
  • For a weird reason in SMBX 1.4 when the player starts walking its increases a lot, but just for the first frame. It doesn't affect anything, though.
  • Some values may look weird but it's because they are a product for an operation. In this table I only included the values, not the operation (except for the jump formula). But these values are accurate and trustworthy.
  • Toad is a weird case because when he reaches his maximum walking speed (for short, MWS), his speed decreases to 3.12 and then increases to 3.22 again. So we can conclude his MWS value oscillates between 3.12 and 3.22. However, I think this shouldn't happen in SMBX 1.4, it would be better if his MSW value is just set to 3.22. There's no reason to do exactly what Redigit did.
  • I didn't add the flying physics (except from the falling speed) because I think they're already good enough in SMBX 1.4.
VISIT MY YOUTUBE CHANNEL! LX XZIT
Join our 38A Discord server!

Image

Lx Xzit M
Topic author, Moderator
Moderator
Avatar
Lx Xzit M
Topic author, Moderator
Moderator
Reputation: 402
Posts: 757
Joined: 9 Nov 2015
Website

Post #2by Lx Xzit » 8 Jun 2020, 22:38

I made a little mistake. Peach acceleration is 0.08425 not 0.8425. I just updated the files!
VISIT MY YOUTUBE CHANNEL! LX XZIT
Join our 38A Discord server!

Image


Return to “SMBX-38A Bug reports”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest