I have it set up so that the ground tile is actually just a blank tile you move through, and the actual tile you see is an event image. I've kinda found a way to do it with the self switch A to an empty event image, but that just makes the ground instantly disappear the moment the player steps on it. I was wondering if there was a way to make the image I'm using fade away slowly after they step off of it.
Can I make ground tiles fade away after the player walks over them?
RPG Maker MV SupportThis is just a suggestion and I haven't tested it, but what about the following:
Page 1:
Image: floor tile
Priority: Below characters
Trigger: Player Touch
Command:
Page 2:
Image: floor tile
Conditions: Self Switch A
Priority: Below characters
Trigger: Parallel
Command:
Page 3:
Image: none
Conditions: Self Switch B
The infinite loop in Page 2 shouldn't affect performance too much, since it's only 1 event running in parallel. But if it does affect performance too much, you can also add a
Page 1:
Image: floor tile
Priority: Below characters
Trigger: Player Touch
Command:
Code:
Control Self Switch : A = ON
Page 2:
Image: floor tile
Conditions: Self Switch A
Priority: Below characters
Trigger: Parallel
Command:
Code:
Loop
If : Button [Down] is being pressed
Break Loop
End
If : Button [Left] is being pressed
Break Loop
End
If : Button [Right] is being pressed
Break Loop
End
If : Button [Up] is being pressed
Break Loop
End
Repeat Above
Set Movement Route : This Event (Wait)
: Wait : 6 frames
: Opacity : 230
: Wait : 6 frames
: Opacity : 204
: Wait : 6 frames
: Opacity : 179
: Wait : 6 frames
: Opacity : 153
: Wait : 6 frames
: Opacity : 128
: Wait : 6 frames
: Opacity : 102
: Wait : 6 frames
: Opacity : 77
: Wait : 6 frames
: Opacity : 51
: Wait : 6 frames
: Opacity : 26
: Wait : 6 frames
: Opacity : 0
Control Self Switch : B = ON
Page 3:
Image: none
Conditions: Self Switch B
The infinite loop in Page 2 shouldn't affect performance too much, since it's only 1 event running in parallel. But if it does affect performance too much, you can also add a
Wait command in the loop (either before or after the conditional branches). I don't recommend waiting for 60 frames, because if the player presses one of the arrow keys for less than a second, the script might miss that.This is going to sound tedious, but the first thing I thought about was going in...and adding more "vanishing" frames through parallax, until you get to Self-Switch D.
What I mean is:
Page 1: Full normal tile. (Player touch)
Page 2: Control Switch A (fading away, Parallax)
Page 3: Control Switch B (fading away even more, Parallax)
...
Until you reach Self-Switch D.
You'd have to do that for every vanishing tile.
If you need to, you could also include somewhere in the event where if the player was still standing on those vanishing tiles, they "fall" through or something since those event are now parallel instead, which allows for the possibility of players remaining or walking on those tiles.
What I mean is:
Page 1: Full normal tile. (Player touch)
Page 2: Control Switch A (fading away, Parallax)
Page 3: Control Switch B (fading away even more, Parallax)
...
Until you reach Self-Switch D.
You'd have to do that for every vanishing tile.
If you need to, you could also include somewhere in the event where if the player was still standing on those vanishing tiles, they "fall" through or something since those event are now parallel instead, which allows for the possibility of players remaining or walking on those tiles.
I will definitely give both of these a try!
Original thread: https://forums.rpgmakerweb.com/threads/can-i-make-ground-tiles-fade-away-after-the-player-walks-over-them.148471/