Make character automatically swim to surface?

I don’t really intend for swimming underwater to be a major part of my game. what would be the best way to set up the character swimming up to the surface of the water if it goes too deep? How would I go about setting the swimming animation to play while its in water?

Setting up splashing and bubbles when it enters the water would be good too

Increase the Buoyancy in your Character Movement. If you want to forbid underwater swimming completely, you have to use Tick+LineTraces to forbid Movement under the surface.

For the animation, simply make a condition in your Animation StateMachine from Run/Walk to Swim and check if the Character is Swimming.

For splashes, use the OnOverlap Event of your WaterPlane. Spawn your particles there.

On a slightly unrelated topic, I love the comical look of the ‘flying’ dinosaur at 0:33 in the video :slight_smile:

Lol thanks

@Raildex It works perfectly now. I guess all I need left is how best to design a splashing particle