MZ Displaying Lights as Pictures above screen tint is driving me crazy

It seemed to be working fine, though there are some flickers that do get longer when I keep switching from day to night.
Here's the event used for turning the lights on:
night switch.PNG

And here's the event used for turning it off:
day switch.PNG
The script to use for a conditional branch that checks if a picture does not exist is this:

!$gameScreen.picture(id);
The script to use for a conditional branch that checks if a picture does not exist is this:

!$gameScreen.picture(id);
Alright, so I used this, and while the lights feel more stable, they still don't wanna stop flickering, and this persists even if I remove the wait command
night 2.PNG
day 2.PNG

Here's a clip of the issue:
I'm unable to replicate your flickering bug. Here's my implementation. I added the bell effect so I could 'hear' when the picture creation commands are fired off.

Because I cannot replicate your bug, there's effectively no bug for me to fix

1704074503603.png

1704074534311.png

Based on the complete abscense of my flickering when I tried implementing a similar version of your code, I would suggest checking the mechanics of how the day/night switches are handled. For debugging purposes, I would add a sound effect to your day event too so you can 'hear' when the day event fires off.
I'm unable to replicate your flickering bug. Here's my implementation. I added the bell effect so I could 'hear' when the picture creation commands are fired off.

Because I cannot replicate your bug, there's effectively no bug for me to fix

View attachment 290299
View attachment 290300
Based on the complete abscense of my flickering when I tried implementing a similar version of your code, I would suggest checking the mechanics of how the day/night switches are handled. For debugging purposes, I would add a sound effect to your day event too so you can 'hear' when the day event fires off.
Okay the sound thing told me something: the day event is playing at night for some reason. I'll have to sort that out

1.PNG
2.PNG

Remembered the thing about the higher page numbers being prioritized, made them the same event with the day portion on page 1. Works now, thanks lol

Original thread: https://forums.rpgmakerweb.com/threads/displaying-lights-as-pictures-above-screen-tint-is-driving-me-crazy.164302/