[VXA] Tiles for animated sinking water level in a cave

I want to build a flooded cave with RTP tiles and am looking for the corresponding water tiles. The highlight of the gameplay is that the player has to pull a kind of plug and the water then drains away gradually. So I'm looking for an RTP-compatible animated water tile that can also simulate the effect of the water draining. I've been searching for hours for a way to implement this, but can't find anything useful in the world wide web. I don't want to just fade out the screen and then the water changes from 100 to 0. I want the water level to drop gradually, so you can sort of watch the progress. Any idea on how I can do this? Anyone knows tiles to make this happen?
Well, You'd need water tiles that gradually show more "wall" on the top side.
1724500988599.png

Not sure if this tile already technically matches with the wall tiles, but I imagine you could go an make an edit of that. I would think you'll then need them to be events on top of the regular water tiles and when you pull the plug, you use a tileset change to get rid of the "real" water tiles, turn on your edited event water tiles, and have them "drain", before removing all of the water.

Something like that.
I do it different by event setup and a plugin to make it like that:
you can of course use event pages depending on the amount of frames.

DynamicDrain.gif
Best would be something like @ShadowDragon is using. A semi transparent water tile that gradually goes "down". Also, forgot to mention I'm using VXA.
A semi transparent water tile that gradually goes "down". Also, forgot to mention I'm using VXA.
you can use events and charactersheet, I don't know ruby, but if there is something
like a spritesheet like shaz multiple frames for MV, it might work out, depending
on the size you seek, or something that change event tile.
you can do it with variables 1,2,3,4,5,5,6,7,8 and count up by 1 as 1 image.

or read 12 frames by character to read the sheet and change if its more
than 12.

but I don't know if there is autotile something like this though.
you can use events and charactersheet, I don't know ruby, but if there is something
like a spritesheet like shaz multiple frames for MV, it might work out, depending
on the size you seek, or something that change event tile.
you can do it with variables 1,2,3,4,5,5,6,7,8 and count up by 1 as 1 image.

or read 12 frames by character to read the sheet and change if its more
than 12.

but I don't know if there is autotile something like this though.
What is the water tile you are using in your example? As for the water level decrease, how could you move those tiles down and at the same time, let them dissappear behind that wall? If that is not what you are doing here, would you mind explaining me what you did here to create that sinking effect?
I do it different by event setup and a plugin to make it like that:
you can of course use event pages depending on the amount of frames.

View attachment 315761
wow that is so cool!
What is the water tile you are using in your example?
just a spritesheet (this sample just wall tiles and a sheet of 24 frames total)
that read the index of rows and columns.

as you can do it in autotiles or character sheet and movement, it's just more
work and might not work smoothly if it's far more than 12 frames.

depending on the size of the area filled, there are ways to set autotile.
but the depth can be different and you have to change the image a lot of
the tile, and not exactly sure how to do it in ruby as I use a special plugin
to create that effect as I have a lot of different ways that is be used to make
it a bit more unique in my game to make some animation smoother.
Still no result. :LZSteary:

I do it different by event setup and a plugin to make it like that:
you can of course use event pages depending on the amount of frames.

View attachment 315761

I would be totally fine with getting a result like this.

As I am using VX Ace, I can't use the same plugin (?) as you did for obvious reasons. I see there might be no way to get this draining effect with an animated water tile as it would be a whole lot of work.

Because of this, I'm currently trying to get the same result using a picture (the picture is the water only) and have it moving down to simulate the draining effect. However, I see no way to have the picture's bottom part to disappear behind the lower wall.

There's two possibities I see:
  • This is impossible to do with Events in RPG Maker Vx Ace, at least without having a script that provides this exact functionality.
  • There's an easy way which I'm not able to see because I think in to complicated ways.
As I am using VX Ace, I can't use the same plugin (?) as you did for obvious reasons. I see there might be no way to get this draining effect with an animated water tile as it would be a whole lot of work.
the plugin I used is custom, and VX Ace uses Ruby so it doesn't work.
the only way depending on the size and functionallity, is variable based.
or a character sheet (like actor 4x2) which is 8 actors of 3x4 on the sheet.

as there was a call on tutorial for MV (maybe for VX Ace), you can read the sheet as
Code:
0  4  7 11  15  19
1   5  8 12 16  20
2  6  9 13 17  21
3  7 10 14 18  22
etc 047 = actor 1, 11 15, 19 for actor 2 as you can you the pattern for the
down, left, right, up (pattern 0) for column 1,2,3,4,
patteren 1 is 4,5,6,7, as you basicly continue the move route like this.

as if it has 12 frames, you can also do 12 pages, variable +1 wait 4 (last page, stays).
but a switch to return the values to 0 for raising or draining.

I don't know if there is a cleaner way if there is no script for it as I use a comment.
but it might be available for vxAce, maybe not, but this is eventing way.

you might require hitbox resize as well depending on the area.
To elaborate on SGHarlekin's suggestion as it is, in practice, the easiest.

Tiles of the empty space you will have after the water has drained.
Character tile sheet of water, set to the opacity levels you want, with the tiles set so that the set route commands 'turn left', 'turn right', 'turn up' show lowering water level. You will have to play around with the wait command between each move.

You will, of course, want several of these events as I assume the cave is more than one tile wide. Copy/paste the event the number of times needed. The tricky bit is getting all the events to lower the water at the same time and at the same speed.

Do the set route move command for the first event. Let us assume that it is event #20.
Immediately underneath that command, do the following script call

Code:
[21, 22, 23, 24].each do |event_id|
  $game_map.events[event_id].force_move_route($game_map.events[20].move_route)
end

21, 22, 23, 24 are the ids of the events I want to mimic the first one, i.e. event #20. You can have as many mimic events as you like.
Thanks to all of you for your suggestions and input.

@Kes
I tried your scriptcall right after I set a move route command for my very first event, but instead of movement, it errors out (move_route is what the error refers to). I set up a move route without ticking the checkbox "wait for complete" and right after that, I added the scriptcall.
It's been years since I used this, so details are lost in a misty haze. Did you try it with Wait for completion, just for comparison?

Original thread: https://forums.rpgmakerweb.com/threads/vxa-tiles-for-animated-sinking-water-level-in-a-cave.171376/