(Help!) Leaving A Trail

Hi all, I've been developing games in MV for some time, now, but this is the first time I've encountered something where I'm stumped.

I want to create a playable cutscene where a character is leaving a trail of blood behind them as they walk. I want the blood to persist in the world afterwards, as another character follows the trail to find them. I thought it would be a neat detail to have the actual trail of the player's movements visible on screen when this happens. However, I don't know how I'd do this except to put a switch on every tile that makes the blood appear.

In short: I have a small sprite created of a few drops of blood, which I would like to have appear when the player walks on a previously blank tile, and persist when the map is entered and exited. Any ideas to make this work? Thanks so much.
I would just use a tile changer to change each tile to a blood one after each move forward command
You could use self-switches and control via script command in the move route of the character. You'd still need a separate event for each blood spot.
Code:
$gameSelfSwitches.setValue([this._mapId, $gameMap.event(this._eventId), 'A'], true)
//in practice this would look like:
$gameSelfSwitches.setValue([1, 2, 'A'], true)
//where 1 is the # of the map; 2 is the # of the event you want to be affected (e.g. the blood spot), and A is the self-switch level)
A tile changer? What is that?
A tile changer? What is that?
A type of plugin. There are a lot of them from different authors

I would just use a tile changer to change each tile to a blood one after each move forward command
That only works well if it's all the same tile. Otherwise it would get cumbersome to create bloody versions of every possible tile the player walks on, check what it is in the event, replace with the correct bloody tile.

I think an event spawner might be easier - if you have a blood puddle image that's transparent so that it looks good on anything, use a parallel event to spawn it on top of each space you go into.
You could use self-switches and control via script command in the move route of the character. You'd still need a separate event for each blood spot.
Code:
$gameSelfSwitches.setValue([this._mapId, $gameMap.event(this._eventId), 'A'], true)
//in practice this would look like:
$gameSelfSwitches.setValue([1, 2, 'A'], true)
//where 1 is the # of the map; 2 is the # of the event you want to be affected (e.g. the blood spot), and A is the self-switch level)


With a script call? Sure, it works, but that is not the easiest way. Why not just do this when they step on the tile?
1709316707765.png


In this case that is much easier than a script call, because you don't need to adjust them per tile. You can just copy this over from tile to tile without changing anything.

But I assume this is not the solution they were looking for either, because they did want to avoid making an event for each tile.
That only works well if it's all the same tile. Otherwise it would get cumbersome to create bloody versions of every possible tile the player walks on, check what it is in the event, replace with the correct bloody tile.
No, you can change only a layer on the tile, at least I know you can in Shaz's and OcRam's tile changers, so you would just pick a layer above the ground.
No, you can change only a layer on the tile, at least I know you can in Shaz's and OcRam's tile changers, so you would just pick a layer above the ground.
Good call - it was never relevant to me, so I didn't recall you can change each layer.

Original thread: https://forums.rpgmakerweb.com/threads/help-leaving-a-trail.166355/