Swimming in a 2D game

Hi,

Currently when my player character ‘BP_Franklin’ overlaps with a Collision Box from ‘BP_SwimArea’ with the below blueprint logic, nothing happens. I can see it firing and setting the ‘Swimming’ mode, but the mode itself doesn’t slow him down or allow him to move freely, similar to ‘Flying’ mode which works but its more like falling that flying.

Swimming Mode chosen

Flying Mode chosen (that looks like falling)

All I want is for the player to float around this dark red area freely, up/down/left/right etc as well as change flipbook to a swimming version but one battle at a time.

Doing the following fixed the movement expectation for swimming, however; I haven’t worked out why the character can’t swim up yet.

I have the following working for me, for whatever reasons I couldn’t get the player to go down AND up likely because I don’t understand Input Actions much, he could only go up, this resolved that issue.

Input Actions

Swimming BP (just a bp with a collision box)

Swimming logic in player controller

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.