Handling deep water

I want to let the player explore my world, which involves finding new routes to places, hidden dungeons, etc. One of the means of doing this will be to let them explore water.

Shallow water is easy to resolve. Footstep sounds with splashing, some animation to show them sloshing about. Bit deeper and they can wade in the water.

I'm not sure how far to take it from there though. What should happen in deep water?

My options:

- player just swims
Player swims in the water. Potential fourth wall obstacle here as there would then be a barrier to how far they can swim.

- player drowns
Initially a damage over time effect is invoked, depending on how deep the player gets. If they go too far, they die.

- player goes underwater
I've never mapped underwater before. But this could quickly become a lot of maps to make, and boring ones, too! Also, the big question is how one "leaves" such a map. I may keep this as an option for a few limited dungeons, but then again if the player doesn't think they can enter deep water how would they know to look?

- player simply can't enter
The deep water is treated as a rock face and movement inhibited.

There are issues with pathfinding, too. I would like it so that if players reach a cliff edge and carry on walking, they fall into the water and then whatever option above I choose is invoked. But with pathfinding this becomes troublesome. If you *can* walk over a void, but wouldn't necessarily want to, how does pathfinding work it out when you click to walk? (I will not be removing click to walk as I want mobile friendliness).

But that's another matter.
I really like the idea of exploring secret areas by getting there swimming, like we do in Besaid Island to get the Moon Crest for Yuna. An invisible barrier wall to prevent the character from going too far isn't a problem for me, but you can avoid that with obstacles, likes rocks and nets, depending on the location, whatever fits the place better. Or you could allow swimming in only a few places like... The main character may be afraid of strong waters, so he/she only swims in slow rivers or lakes, which are easier to manage. The beach, since usually has more dangerous waters, could be left out and the character would only walk on the shore.

Drowning could happen if said character tried to swim on the beach or if he/she encountered a weird creature that attacks people from underneath the ocean.

Or even 3 different types of water: shore one, small and comfy; able to swim one, the one where the player can have fun; way too deep, you can't swim here, it's dangerous.

Underwater is only necessary if it fits the story, but can be avoided. How would the character breath underwater or how long would he manage to sustain breath can both be a headache.

The pathfinder part would require a lot of eventing, and maybe a change of tileset here and there. I think ^^'' not the best to help you here
What about having a boat for deep water?

Or what about having some damn slaughterfish (like ESO) that eat you up when you get too far out, otherwise you can swim around without having to worry about diving or holding breath. Slaugherfish work like a very quick timer that drops your HP when you've gone too far out into the ocean. But if you can get back into shallow water or on a rock, the slaughterfish go away.
How about some magical item or submarine? Maybe you can say in the story that it has limited uses due to certain reasons such as magic consumption and then justify not wanting to resurface randomly in the middle of the ocean for no apparent reason and wasting magic and thus, the player will only be able to go to limited places with it. It can be like another big world map except underwater.
Hmm. It sounds like swimming ability should be a part of your game. There are a few ways to handle this:

-have some sort of parameter or variable for the player's swimming proficiency. at various points in your deep water (like when it's really far out that it'd require a lot of stamina) you can place events where if the player's proficiency is not high enough, it says something like "i'm getting pretty tired...if i go out any further, i won't have the strength to swim back."

-use a parameter or variable for the player's swimming proficiency/stamina and actually have it decrease as they swim in the deep water (you can use regions and a common event for this). when the meter gets to 0, either the player drowns (game over) or you can automatically send him back to land.

-just decide for yourself that the player's swimming ability will always be basically a set amount, and manually set boundaries where the player cannot swim past and just have it say "if i go any further out, i won't have the strength to swim back."

you should also take it one step further, where in turbulent waters the player cannot swim through it, and would need a vehicle to traverse. maybe even one step further in stormy seas, you need a full-fledged ship to get through.
@Amy Pond 'Game Mechanics Design' is not for feedback on individual, specific projects. Nor is how to handle sprite appearance and movement a mechanic as such.

On the basis that the discussion stays at the general level, rather than the precise needs of your particular project, the thread can stay open, but needs to be moved.
Moved to: General Discussion
This is a very, very strange forum.

I've thought of a slight tweak to the third mechanic. Instead of going to a separate map, simply map the world beneath the water as a continuation of the current map, as if the water isn't there at all. This is given a sandy base and various different platforms, rocks and so on. The boundary to where you walk is created by the same means of blocking movement in the overworld - cliff edges and such.

Over the top of this, a water graphic is overlaid. This graphic is mostly opaque and slightly animated to look like water, looking roughly like it was an autotile but allowing some visibility of what's below. However as the player wades through the water and gets deep enough they eventually just end up walking on the sea bed; at that point the water becomes more transparent so you can see more of the world.

I'm not a fan of limits on how long you can breath underwater, but that could be an addition.

So then if the player walks off a cliff they end up dropping into and through the water until they hit the bottom. They could sustain falling damage in the process.

As a rough example here's Crystalis on RPGMaker.net.

C48.PNG


But imagine that is part of the main overworld map, you just got there by walking in or falling.

Or this one in Amongst Thieves:

Dragons_Tear_Screen_15.png


Imagine if you could walk into that map below and explore it, discovering caves and dungeons along the way and using it as alternative routes to get around the world.
If you're still working on this, you could just follow these steps or the ones underneath (no plugins for the second option) to enable the diving mechanic:
1. Get Yanfly's Region Common Events plugin
2. Make a different coloured water for swimming water and deep water.
3. Put a region on all of the deep water.
4. Make a common event occur (with the plugin) on the tiles with that region that asks whether or not the player would like to dive.
5. If Yes then put a transition of your choice and splash sfx.
6. If No, then End the event processing.
7. Done! 🙂
No Plugins
1. Make an event.
2. Name it anything you want (e.g. Diving)
3. Make it Action Button based.
4. Show choices (Yes, No).
5. If Yes then put a transition of your choice and splash sfx.
6. If No, then End the event processing.
7. Copy and paste the event to all diving areas. Done! 🙂
If you don't want to ask the player, then go for option one without the show choices. If you want the player to have to press the action button and then be prompted to dive then go for option 2.
Also for your overlay with the transparency thing, just follow this tutorial (its made for VX but I was able to use it for MV with Victor's fog and overlay plugin): https://forums.rpgmakerweb.com/inde...ons-underwater-effect-mapping-tutorial.26558/
And if you really want the player to be able to see where they will be diving, then you can try something with taking a map shot of the underwater area and putting that with really low opacity in the dark diving area.
Hope it helped! 🙂
@IbroAnw 'General Discussion' is not about implementation. Please do not derail this section of the forum by posting information that belongs over in Support.
@Kes Then could I have posted this in the 'Game Mechanics Design' section? Just asking coz I'm new here and am just trying to help others. And also is there a specific section for asking about rules like this? I want to post a tutorial (the one that I mentioned above), but instead of for VX/VXA, I would make it for MV. Would I still post that in the tutorial section? Because I would just be converting an older tutorial for VXA to an MV one. Thanks for the info and help! 🙂
@IbroAnw As answering all your questions here would derail the thread, I'll reply in a pm.

Original thread: https://forums.rpgmakerweb.com/threads/handling-deep-water.89925/