Tinting the screen

I wanna tint my screen so different areas the player can go to have different lighting, but I don't know how to do that without using an auto-run event and that stops the player from doing anything. If you have any ideas please help me!
you use an autorun in the correct way - either switch it off or erase it depending on what exactly you want and how to repeat it.

I suggest you follow the link to the starting point in my signature and work through some of the tutorials on events because you're missing the most basic steps on handling autoruns and parallel processes.
Just to be sure, the different lightning won't be present simultaneously? Then it's fairly easy:
1) You can set the game screen tint with an event touch on every location you want the screen to change color.
OR
2) Set a variable to a specific number on every spot that changes the tint. The variable, that remains the same variable ID for every color, is assigned a number, and each number represents a color, with 0 representing nothing (important part). Then you set an auto-event that only runs if that variable is greater than 0. In that event, you check the value of the variable and set the screen tint accordingly. After changing the screen tint, you set the variable to 0 (so that the auto-event won't run anymore).
Just to be sure, the different lightning won't be present simultaneously? Then it's fairly easy:
1) You can set the game screen tint with an event touch on every location you want the screen to change color.
OR
2) Set a variable to a specific number on every spot that changes the tint. The variable, that remains the same variable ID for every color, is assigned a number, and each number represents a color, with 0 representing nothing (important part). Then you set an auto-event that only runs if that variable is greater than 0. In that event, you check the value of the variable and set the screen tint accordingly. After changing the screen tint, you set the variable to 0 (so that the auto-event won't run anymore).

The thing is the game is gonna have separate rooms for each location. sorta like LoZ... the old games. where you went north south east or west and entered a new area. so for some rooms i want to tint the screen so it matches the room and gives it a cool effect.
If they are different maps, just have a parallel process event on each that sets the tint, then does an Erase Event. And if you go to a map where you don't want it tinted at all, do the same but set the tint back to normal.

Autorun and Parallel Process are similar in that they both run when you first enter a new map. Autorun blocks player interaction (so should only be used for cutscenes).
If they are different maps, just have a parallel process event on each that sets the tint, then does an Erase Event. And if you go to a map where you don't want it tinted at all, do the same but set the tint back to normal.

Autorun and Parallel Process are similar in that they both run when you first enter a new map. Autorun blocks player interaction (so should only be used for cutscenes).


OMG THANK YOU!! I never understood the parallel one till now. thank you so much! I'll try that now!
Just make sure, if it's something you want to "set up" on the map (like weather, tint, BGM/BGS, moving events around), that you erase the event at the end. Autorun and parallel events loop by default, so as long as you leave them active, they're going to be running every frame, and can cause your game to lag. If it's an event that NEEDS to run the entire time you're on the map (like something that checks your location or stats), put a Wait for a number of frames, as it probably doesn't need to happen 60 times per second (a wait of 15 will make it run 4 times a second)
Just make sure, if it's something you want to "set up" on the map (like weather, tint, BGM/BGS, moving events around), that you erase the event at the end. Autorun and parallel events loop by default, so as long as you leave them active, they're going to be running every frame, and can cause your game to lag. If it's an event that NEEDS to run the entire time you're on the map (like something that checks your location or stats), put a Wait for a number of frames, as it probably doesn't need to happen 60 times per second (a wait of 15 will make it run 4 times a second)


Thank you! This will help m greatly!

Original thread: https://forums.rpgmakerweb.com/threads/tinting-the-screen.102683/