The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: arnquist on March 03, 2012, 03:00:17 AM

Title: [RESOLVED] Display image ONLY on 'Player Touch'
Post by: arnquist on March 03, 2012, 03:00:17 AM
Instead of town maps, my game will have the player enter houses and other areas directly from the world map, like in Chrono Trigger. I want an event that displays the name of the area when the player is next it, but the name disappears when the player walks away.

The only way I can figure out to do this is by surrounding the entrance event with events that erase the image... which is fine I guess, but I feel like there must be a more elegant way to do without cluttering the map with so many events for each entrance.
Title: Re: [Request] Display image ONLY on 'Player Touch'
Post by: IAMFORTE on March 03, 2012, 03:13:50 AM
Ummm, you could make a blank square on your tileset and change its terrain tag, then place it in a circle around the events, then make a common event that runs whenver the player steps on that certain terrain tag(unloading the image from memory id assume)

OR

have the player touch event run a selfswitch to a new page and have a paralell process that checks a conditional branch to see if the player is presing up down left or right, then removing the picture, and reseting the self switch.

hopefully thats enough to go on, if you have trouble let me know, I'm not the greatest at explaining things coherently.
Title: Re: [Request] Display image ONLY on 'Player Touch'
Post by: arnquist on March 03, 2012, 03:45:15 AM
Very nice! Conditional branches work nicely. Thanks a lot.

I thought of the terrain tag thing, but I don't like using invisible tiles and having to remember where they are and what they do.

I also tried conditional branches, but I guess I was doing something wrong before, hehe ^_^;
Title: Re: [Request] Display image ONLY on 'Player Touch'
Post by: Nessiah on March 05, 2012, 07:50:46 AM
I'm assumming this is resolved then :)