icantswim.lua is a library that lowers a player's gravity when they go underwater (via water boxes, currently doesn't affect underwater sections), instead of putting them in a swimming state. Essentially, Mega Man water physics applied to Mario. Includes adjustable values for a player's jump height, fall speed, and run speed in water, and toggleable splash and bubble effects.
Note that this library is not compatible with multiplayer at the moment. (X2 characters are partially supported)
Please report any bugs you find, I'm pretty new to Lua so any feedback would be appreciated!
EXAMPLE:
DOWNLOAD:
CREDITS:
Thanks to RandomTalkingBush on the Spriters Resource for ripping the splash and bubble sprites
Thanks to KBM-Quine#6602 on Discord for discovering how to enable underwater physics for NPCs
Thanks to MrDoubleA#3124 for fixing an issue where NPCs that use player defines don't work properly