What's the best way to make a character swim?

Hello lovely people. I really want to add a portion of my game where the player character and party members are swimming. I'm assuming I'll need a different sprite sheet for the swimming animation, but aside from that I can't figure out what to do.

Water tiles are impassible, but I don't want all impassible tiles to become passible so I think I should just change that in the database?

Basically I have a few possible answers but no idea where to start implementing them. Should I use terrain tags or a script or something else? I'm not great with scripting but I could get one to work if I have to.
There are a number of ways you can do this, some of which you've already touched on. Unfortunately, only you can say for sure what will work best for your game.

Personally, the way I would do it would be to have a region ID at any "enterable" water, and when the player hits enter while standing on that region it calls a common event which checks whether the tile in front of them is water, and if so moves them forward, sets their graphic to a swimming character, and changes the tileset to one where the water tiles are passable.
The simplest way may be to just use the boat and change the graphic for it.

I did this to make my Cow row the boat, but the boat could easily be invisible until "boarded" and then change it to your swimming sprite, then change it back to invisible when returning to land. It doesn't have to be the actual character so long as it looks like it is!



It's easily done with a parallel event checking to see if the boat is in use. I can post the event I used if it would help.


EDIT: I just noticed this is for VX Ace! Sorry, I use MV & MZ. It *should* still be possible this way, but am unsure if my event would translate to Ace - I'll still post it if you want to see it anyhow...
Another idea would be: create a "clone" of the tileset and invert the passabilities, then chage the tileset with the event command when changing the sprite.
Another idea would be: create a "clone" of the tileset and invert the passabilities, then chage the tileset with the event command when changing the sprite.
This is what I ended up doing! I'm not great with region IDs so this was the best for me personally. Thank you everyone for your help!
Sorry for necroposting but the one involving the region IDs is actually extremely simple.

I made mine with a slight repurposing of the tutorial found here;
But extremely simplified 😛

It just requires you make the region of the water a specific ID. In this case, I went with '2'
1644152831461.png
Then you'll open an event as shown, with an 'if' statement that checks for the region (2 for me), using this bit of script. the event pages will all be set to 'parallel' and below player.

Code for clarification: $gamePlayer.regionId() == 2
1644152866803.png

Then you'll create a second page for 'self switch: A' that has the the same settings as the first but it will now check if the player is 'off' region ID 2.

Code for clarification: $gamePlayer.regionId() == 2


**The If statements are where you would also add things like changing your current character's sprite to a 'swimming' one, etc.**

**It's also extremely important to remember that this event's pages ALL need to be set to 'parallel'**

Original thread: https://forums.rpgmakerweb.com/threads/whats-the-best-way-to-make-a-character-swim.137093/