"Automatic" Illumination

Basically, my idea is: The character enters a room, and in that room there are candles, and I want to give an effect as the player reaches them the brightness of the room increases, and with each candle lit the screen tones increase (or go to "Standard"). The standard brightness of the room is already at Night (hue in this case) and I have already decided at what point the hue increases, but I was not able to use the little knowledge of switches and conditions to do what I want. can you help me?
PS.: the event between the candles is the place that I want the player to play and the tone to increase.
PS..: Sorry for the english, I don't speak english, I'm brazillian
The links for Images below:


There are various ways of achieving this:
  1. The easy way
    Create an event that checks the player distance from the closest lamp (there are very efficient ways of doing this or less efficient ones) and have that event trigger a switch. You can use that switch to trigger a parallel process common event that tints your screen and then turns the switch off.

  2. The hard way
    Create a parallel process event that calculates the distance between the player and the closest lamp and then tints the screen accordingly.
While the easy way might sound good, you have to be careful when handling it or nasty bugs might occur (screen flashing, not being able to tint the screen to its original color, and other similar things).

The hard way is also quite hard because you have to keep the player movement speed into account when deciding how fast you want to tint your screen. If your tint takes place in the amount of frames that the player needs to move when walking, if the player dashes your whole event gets screwed.

In the end, I strongly recommend learning how to use events properly and then pick the option that is most suitable for your situation, but to decide which one fits that description, you have to know the advantages and disadvantages of each situation.
That's exactly what I want, I need help doing things like that, as you can see, I don't have much knowledge about events, but I want to do that. And about the distance of the lamps, I want to increase the hue between two lamps, in this case, as you can see, there is an event between them, and this is where I want the hue to increase, of course, I will put more events next to it in case the player does not pass exactly in the middle, but the main idea is this. If anyone knows how to teach me how to do this, contact me if possible, my email is:
content removed by mod
Because I think it is something complicated to teach the forum here.
Thank you very much in advance.
PS: Se tiver algum BR lendo ae que saiba como fazer e queira me ajuda, me contate também, fica mais fácil pra dialogar ;}
@ShinigamiDaikouP I've removed your email address. We ask members not to post them publicly. Bots crawl sites looking for such information to send spam to.
I don't have much knowledge about events
In this case I strongly recommend reading Andar's tutorial in my signature as it contains a lot of useful information that might help you in the future. Of course, everybody in this community is willing to help you, but it is much better to build a solid foundation about events and then moving to complex things rather then having to ask for help even for simple things.

The main advantages here are:
  1. things are going to be much easier for you in the long run;
  2. people helping you to understand how to do things can have a much easier life when explaining because you already know the majority of what they are saying and only need to focus on the things you do not know yet;
  3. you will be able to solve a tremendous amount of problems on your own without even realizing it.
That said, since this is not exactly "basic" and involves a certain number of tricky aspects that you might not be familiar with even if you know how to event properly, if you still need help after taking a look at that tutorial feel free to come back and ask for help.

One more thing: a forum is meant to help people who come here and read, even in the future, so it is much better to give you a reply here rather than sending a PM, this way it can be useful to future readers. Sending you a PM means that future readers will be unable to find an answer to their problem because it is only stored in our conversation.

Original thread: https://forums.rpgmakerweb.com/threads/automatic-illumination.119959/