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.
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.