Main Menu

Individual Tile Swapping - Event or Script? [Resolved]

Started by BDMarvel, April 10, 2010, 04:37:47 PM

0 Members and 1 Guest are viewing this topic.

BDMarvel

I'm trying to figure out how, using an event (one that fires off a script if need be) I can change a specific tile on a given map.  The scenario is this: Player is standing on the world map, below a lighthouse tile.  The lighthouse is not lit.  An event is placed on the light house tile, to transition the player to the interior, where I want the player to press the action button next to another event in order to light the lighthouse.  When the player returns to the world map, I want the lighthouse tile to be replaced with the "On" tile.  I've attached both tiles below for reference.

I've looked all over and so far the best I can find is to swap tilesets.  I'd rather not have to swap in a whole tileset just to change a single tile, so I'd like to know if there is a better option.  Thank you.

modern algebra

RMVX doesn't inherently have the functionality to change one tile to another in a given map. But it's easy enough to do simply by making it a charset instead. Have the event graphic be the OFF one first, then when the lighthouse switch is ON you just make a new page for it and have the graphic be ON instead.

BDMarvel

Thank you modern algebra!  I knew there had to be a simple way to accomplish this, and it works perfectly.  Much kudos to you.

Grafikal

Like MA said, you can simply make a character sheet and do it like that. I thought I'd let you know that you can also set event graphics as anything from your tileset. So if, for instance, you had both of those pieces from your first post placed on your TileE, you can set an event as one of those graphics then swap it like you would a character sheet to the other. I would go with the character sheet in this instance, but just saying.

BDMarvel

Thanks grafikal, using the tileset actually works better for me in this case.  I didn't realize I could choose event graphics from tileset since I had no reason to scroll down before.  I appreciate the further tip on the resolved issue.  Works like a charm. :)