Is there a way to make a player "float" into water or hover in a platformer, like you are swimming to the surface?

just use this guide.