Quantcast
Channel: Super Mario Bros. X Forums
Viewing all articles
Browse latest Browse all 2891

LunaLua • inertia.lua - Keep your speed on moving npcs!

$
0
0
You may know the moment when you are trying to platform on a moving platform (looking at you, red YI platform) and it's hard to stay on the platform and feels wrong as well.
The lack of inertia in SMBX bothered me at least, so here's a little library that fixes that!

inertia.lua v1.0

With this library you keep your momentum on moving npcs, making it a lot easier to stay on a moving platform.
Additionally, your jump height is effected by the vertical speed of the platform! You can get quite a lot of distance with that.

You can customize how it works with these:

Code:

local inertia = require("inertia") -- loads the libraryinertia.keepSpeed = 1 -- how much speed you keep when leaving the platforminertia.maxJumpSpeed = -16 -- the highest vertical speed you can get when jumping off a moving platforminertia.minJumpSpeed = -3   -- the lowest vertical speed you get when jumping off a moving platform.inertia.maxSpeedX = 6          -- highest horizontal speed. If > 6, you can get faster than your normal running speed, it reverts back to normal when landing
here's a little bit of footage:
Spoiler: show
inertia off:
Image

inertia on:
Image

credit if used yadda yadda you know the drill

Here's the download:
https://www.dropbox.com/scl/fo/4in7q8fj ... zn5pp&dl=0

Statistics: Posted by Master of Disaster — Sat Mar 09, 2024 9:50 am



Viewing all articles
Browse latest Browse all 2891

Trending Articles