danipo

Villager
Member
Joined
Feb 8, 2022
Messages
12
Reaction score
4
First Language
Spanish
Primarily Uses
RMMV
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!
 

AquaEcho

Script Kitty
Regular
Joined
Sep 20, 2021
Messages
1,713
Reaction score
1,177
First Language
English
Primarily Uses
RMMV
I would use a tile changer like Shaz's plugin and put the graffiti graphics on the B layer or higher tiles.

 

danipo

Villager
Member
Joined
Feb 8, 2022
Messages
12
Reaction score
4
First Language
Spanish
Primarily Uses
RMMV
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!
 

danipo

Villager
Member
Joined
Feb 8, 2022
Messages
12
Reaction score
4
First Language
Spanish
Primarily Uses
RMMV
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!
 

AquaEcho

Script Kitty
Regular
Joined
Sep 20, 2021
Messages
1,713
Reaction score
1,177
First Language
English
Primarily Uses
RMMV
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
 

danipo

Villager
Member
Joined
Feb 8, 2022
Messages
12
Reaction score
4
First Language
Spanish
Primarily Uses
RMMV
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!
 

Latest Threads

Latest Posts

Latest Profile Posts

A spooky banner and a spooky pfp for a spooky season.
Spooky-Season.png
Broke: Actually making the stuff you need to make before the game can progress.
Woke: Wasting time instead by making a sidequest where you can recruit an imaginary friend to the party.
1696264391516.png
Day 1 I don't know where to start... I enjoy designing icons and brainstorming the abilities my video game will have
Some days I understand the internet....other days, not so much.
Me (on reddit): That's a cool picture!
Artist who drew it: Thank you!
Random user: You're welcome
200w.gif

Forum statistics

Threads
134,991
Messages
1,252,674
Members
177,896
Latest member
Wulf_SDP_58343
Top