Hi, I'm using DKP's Game Time and Game Time Day/Night to have the game screen change tints in real time. I want to have the lights from things like street lamps and windows be displayed as a picture bound to the map, which will allow them to be seen above the tint of the screen. My problem is that I can't seem to figure out how to make these picture layers display when they're supposed to. I want them to be active from 6pm to 6am, which according to how these times are saved as a variable, would be 18 to 6. If I wanted to exclude the daytime from having these lights displayed, I'd use the values 7 to 17. How would I be able to do this? Even putting (dayPeriod == Game_Time.NIGHT) in the conditions field for a switch to be enabled hasn't given me the results I'm looking for.
Sorry if this isn't posted in the exact right place, I'm a bit disoriented at the moment from trying to figure this out.
No worries. There are a ton of sections. I gotchu. I’ve moved this thread from RPG Maker MZ Support to JavaScript/Plugin Support.
please give links to the two plugins you're using, and screenshots of the events you're currently at with displaying the light picture.
we can't help you without details of what you've done.
then please show the full event screenshot, not cutting away the properties - that allows us to check if there is something else wrong.
Still not enough info. Whatever is defined in page 2 could potentially prevent page 1 from being active. We also need to see the exact code and trigger conditions that handles switching on and off your Night Time switch.
Bugs are often not caused by the code itself, but the context of the code as well.
Pressing F9 during playtest also gives you a debug window where you can directly see and edit the values of all switches and variables.
There's our problem. Event pages go to the page with the largest index that fulfills all its conditions. Because page 2 is blank, that event is always on page 2. If we delete page 2, the light should work.
There should be an additional bug involved with the pictures not deleting themselves upon switching from night to day but we can worry about that later
yes, you can use a conditional branch.
however the check is a bit more complicated because you can't directly check on pictures with eventing, you would need a switch that is set when the picture is shown and unset when the picture is removed.
EDIT: the flicker is most likely loading delay, so you might be able to reduce it by making the picture filesize smaller (higher compression) or by using a preloader (rather tricky with timing)