MV Can I use Galv_LayerGraphics for day and night cycle in MV?

So I have a day and night cycle running with tint screen, I can't seem to get my head around how to swap the tint screen part for a layer graphic, I have Dawn, Day, Dusk and Midnight, I have the layers I'll use for each.
I am new to plugin commands and wondering if Galv layers can do what I'm aiming to do here or if I need a different plugin/approach?


screen.png
Hi there!

Galv Layers basically let you use images to build your map. By default, RPG Maker has only the parallax, that is only one image, and on a fixed layer index(below the map you drawn).

So you can say that Galv Layers let you create several parallaxes, on different layer indexes. Meaning you can put images as parallax below the map, above it, between the player and the map, etc.

The only reason I can think off you are trying to replace the tint screen with Galv Layers, is that you want to paint the map but not the player and events?

I believe you can reach that by applying a color into a layer image, and then change the blend mode to another one that is not 0.
I'm aiming to have a layer above my player and all the other parallax layers using the blend mode, multiple. This layers png changes depending on the IF: hours numbers connected to my day/night cycle.
I'm aiming to have a layer above my player and all the other parallax layers using the blend mode, multiple. This layers png changes depending on the IF: hours numbers connected to my day/night cycle.
If you are planning to have a layer above everything, you don't need all layers. Just show a picture with the size of your game resolution. So it will cover the entire screen,
If you are planning to have a layer above everything, you don't need all layers. Just show a picture with the size of your game resolution. So it will cover the entire screen,
I appreciate your responses, but maybe I am explaining myself poorly...

So the problem I have is I cannot work out how to make this layer change with the time of day.

So I have 5 time periods, Dawn, Day, Dusk, Night and Midnight.
This is working well, I just don't like the way the tint looks.

So I have made 5 different layers to replace the 5 different tints.

these layers work fine, I can get them on the map with the notes no problem
for example: LAYER_S 5 NIGHT 0 0 255 11 2
This is not what I am trying to do though, I want the layers to change as the time changes. So I just want to replace the 5 different tints with my 5 different layers.
these layers work fine, I can get them on the map with the notes no problem
for example: LAYER_S 5 NIGHT 0 0 255 11 2
This is not what I am trying to do though, I want the layers to change as the time changes. So I just want to replace the 5 different tints with my 5 different layers.
I'm confused by...what you're confused by.

You would literally replace the Tint Screen with the Plugin Command event command.

You have the exact syntax above, the only difference I see in the instructions between the map note and the plugin command is you need to add the map ID after the word LAYER_S.

That does mean you may have to move this out of common events to a parallel event on each map, so you can reference its ID.

Also, even in your original event, you really should have some Wait commands in there. There's no reason to be checking for this 60 times per second. Look at how frequently the "hours" change, and add wait commands accordingly.
Thank you this really helped!
I was up late tinkering and had added a different plugin LNM (editor/time/lights) I had also changed to a Parallel event on the map.
It was still not working at all though or sorta half working... Once I added the wait and some self switches it is now doing what I wanted it to do.

So thanks for the tips, I take it that I should be adding wait to most events??

screenshot.jpg



I'm confused by...what you're confused by.

You would literally replace the Tint Screen with the Plugin Command event command.

You have the exact syntax above, the only difference I see in the instructions between the map note and the plugin command is you need to add the map ID after the word LAYER_S.

That does mean you may have to move this out of common events to a parallel event on each map, so you can reference its ID.

Also, even in your original event, you really should have some Wait commands in there. There's no reason to be checking for this 60 times per second. Look at how frequently the "hours" change, and add wait commands accordingly.
So thanks for the tips, I take it that I should be adding wait to most events??
Yes. Parallel events attempt to execute every frame - 60 times per second.

If your event doesn't actually need that degree of precision, it should have a Wait command to make it process less frequently. That's the leading cause of problems with lag in a game.

It's also a good practice to take a step back if you find yourself using multiple-to-many parallel events. Ask yourself which ones are necessary, if any can be combined, if there's a different way to implement something.
I'll keep an eye on this, thanks for the advice.

Yes. Parallel events attempt to execute every frame - 60 times per second.

If your event doesn't actually need that degree of precision, it should have a Wait command to make it process less frequently. That's the leading cause of problems with lag in a game.

It's also a good practice to take a step back if you find yourself using multiple-to-many parallel events. Ask yourself which ones are necessary, if any can be combined, if there's a different way to implement something.

Original thread: https://forums.rpgmakerweb.com/threads/can-i-use-galv_layergraphics-for-day-and-night-cycle-in-mv.159635/