Probably another obvious newbie question, but how can I change more than one tile with an action? I just learned about self switches which worked great adding lamps the character can turn on and off in game, but I ran into a problem trying the same trick to make a door open and close - since the door takes up two tiles I can only open and close the bottom half (which looks really weird). I'd appreciate any help, thank you!
How to change multiple tiles at once?
RPG Maker MZ SupportI would suggest to take a look at
Having said that, if you want two events to react the same way if one of the events is triggered, you can control self-switches of other events with a script call, for example
img\characters in your project folder. There you will see files like !$Gate1.png. The out-of-the-box approach is to have doors and other large interactable objects, especially if animation is involved, as these sort of large sprite events.Having said that, if you want two events to react the same way if one of the events is triggered, you can control self-switches of other events with a script call, for example
◆Script:// Turn on self-switch A for event with number 1 higher
: :$gameSelfSwitches.setValue([this._mapId, this._eventId + 1, 'A'], true);What exactly are you trying to do with the door? Even 2 tile objects should change the whole graphic.
You can just replace tiles with images?
I...am going to need to look up how to do script calls. But I will, thank you!
I don't know anything about graphics, I just bought RPG Maker the other day and I'm trying to learn as I go googling and youtubing short tutorials when I bump into a problem. I learned how to do self switches which can let you swap one picture for another, but using tiles for the pic just lets me change one tile so far. Here's a couple pics to help illustrate it.
Then I suggest you start with the build-in tutorials in the editopr's help section.
Those are intended to give you the basics, and the editor is too big with too many options to learn without a guide.
just as an example: the best way to do a door is by quick event: door
just right-click on your map and use that option.
and there are many such tricks that you simply cannot guess by just playing around withotu a guide.
Okay, since you've obviously just opened the box of chocolates. You can either:
1. make both bottom and top part of the door an event
or
2. cut out (actually copy) the door graphic from the tile set, and turn it into an actual door graphic (like what you see with
!Door1.png and !Door2.png in img\characters)As @Andar says, doing the tutorials is heartily recommended, as it's a little difficult to explain both 1 and 2 before you understand the basics!
Yeah, there's no reason for you to be considering script calls for this (and no, script calls cannot change the map tiles without using a plugin).
I would suggest that you might want to make a new test project to follow the built-in tutorial, and then work through a few tutorial series from YouTube channels.
We already saw in another thread that you're having some issues with whatever this tileset is that you're using, so I don't know if it fully conforms to the RPG Maker specifications or you've set it up correctly, etc.
I recommend you slow down a notch and learn how all of this basic stuff works using the default tilesets, and then you'll know the difference between "you did something wrong" or "your custom tileset isn't configured correctly".
I would suggest that you might want to make a new test project to follow the built-in tutorial, and then work through a few tutorial series from YouTube channels.
We already saw in another thread that you're having some issues with whatever this tileset is that you're using, so I don't know if it fully conforms to the RPG Maker specifications or you've set it up correctly, etc.
I recommend you slow down a notch and learn how all of this basic stuff works using the default tilesets, and then you'll know the difference between "you did something wrong" or "your custom tileset isn't configured correctly".
It's Pop Horror City
Also, OP, there's a distinction between changing a tile graphic and changing an event that uses the picture of a tile. If you want something interactable like a door you use an event, and an event can have a graphic larger than the size of one tile.
Thank you all for the help! Definitely going to try doing some of those tutorial projects. And I wound up doing that door thing via quick event, worked right off the bat thank you!
Original thread: https://forums.rpgmakerweb.com/threads/how-to-change-multiple-tiles-at-once.165967/