Hi, I am looking for a way to create water in a 2D side-scrolling game, where the character is able to move around in the water, and jump out of the water, and fall back in. I want to make the water in such a way that if the character gains momentum, it can jump higher out of the water, and once it falls back, controls are back to normal.
1 Answer
1You need a way to tell the scripts and controls where the player is currently. So personally I would create a collision box around either the water or the air, and based on the collision with either of those boxes either activate or deactivate the controls that you want. If that helps at all.