Graffiti system

Hi everyone!

I want to make a graffiti mechanic in my game. My idea is to let the player paint almost any wall on the game.

I thought about using a specific region in all the walls I want to implement the graffiti system, but I just can't figure out how to make the graffiti appear without putting an event on each tile.

I also thought about changing map id only in the tiles painted by the player, but I don't know if that's possible.

Any ideas or plugins recommendations are well recieved!

Sorry if i misspelled anything or missed any important info.

Take care everyone!
I would use a tile changer like Shaz's plugin and put the graffiti graphics on the B layer or higher tiles.

I would use a tile changer like Shaz's plugin and put the graffiti graphics on the B layer or higher tiles.


Hi AquaEcho,

That seems pretty close to what I'm looking for, I'll look over that for sure!

Thanks for the link and answering so fast,

All the best!
I've been trying Shaz's plugin. I'm honestly lost since I can't come up with anything that allow me to change the tile in front of the player.

I think that with code it should look similar to this:

var d = $gamePlayer.direction();
var x = $gameMap.roundXWithDirection($gamePlayer.x, d);
var y = $gameMap.roundYWithDirection($gamePlayer.y, d);

The problem is: how do I use the value obtained in a command readable by the plugin?

I'll keep playing with this, but if anyone can help me a bit I'd be grateful.

Take care!
This worked for me to change the tile in front of the player to the 3rd tile on layer B:
Control Variable 4 = $gameMap.roundXWithDirection($gamePlayer.x, $gamePlayer.direction());
Control Varible 5 = $gameMap.roundYWithDirection($gamePlayer.y, $gamePlayer.direction());
ChangeTile $gameVariables.value(4) $gameVariables.value(5) 1 2

ChangeTile x y z tileId
Changes the tile at the specified coordinates and layer to the tileId indicated.
Z-layers
0 - ground layer (most A tiles)
1 - ground cover layer (A1 tiles with transparent areas, and right 4
columns of A2 tiles)
2 - upper layer 1
3 - upper layer 2
4 - shadow layer
5 - region layer
This worked for me to change the tile in front of the player to the 3rd tile on layer B:
Control Variable 4 = $gameMap.roundXWithDirection($gamePlayer.x, $gamePlayer.direction());
Control Varible 5 = $gameMap.roundYWithDirection($gamePlayer.y, $gamePlayer.direction());
ChangeTile $gameVariables.value(4) $gameVariables.value(5) 1 2

I'm still having a few issues but it's starting to work!

I'll play with that and see if I can get the precise mechanic I had in mind.

Thank you again, enjoy weekend!

Original thread: https://forums.rpgmakerweb.com/threads/graffiti-system.157969/