Galv's Layer Graphics (fogs, parallaxes, mapping)

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,238
Reaction score
1,440
First Language
English
Primarily Uses
RMMZ

Layer Graphics - Version 1.9
RPG Maker MV Plugin
Galv



Introduction
I couldn't live without graphic layers. Converted this one from my Ace script.
I have not tested this on slower computers to see what kind of lag large images create, but I would harazard a guess that especially playing on a server, larger files might cause issues when downloading. So make sure to test!


Screenshot



Features
This plugin allows you to use graphics as layers on the map, designed to be used for layer mapping (parallax mapping), fogs and other effects.
Layers can move at different speed to player movement (useful for perspective effects), slide like fogs, display at different levels on the map (below map, below characters, above everything, etc.), opacity, blend, etc.
Uses 'Plugin' command to change layer settings during game.


Battle layers are now implemented, so you can create fogs and the like for battles.

How to Use
- Copy the "GALV_LayerGraphics.js" file into your project's /js/plugins/ folder.
- Activate plugin using the 'Plugin Manager'
- Create a new folder in your project: /img/layers/
- Use Plugin commands to setup layers
- Read the 'HELP' documentation (also found in plugin manager) for more details and try the demo if you don't understand.


Plugin
Get it here


Credit and Thanks
- Galv


Terms
Free to use in any RPG Maker MV project including commercial. Please credit "Galv". :)


Updates


2016-06-15 - Version 1.9 - fixed compatibility issue with Yanfly Battle Core and layer positioning


2016-05-02 - Version 1.8 - fixed a crash when starting a battle with layers when no map layers were made


2016-04-16 - Version 1.6 - Added non-repeating layers to map. Added battle layers.


2016-01-23 - Version 1.5 - Added trial code for potential memory issue


2015-11-29 - Version 1.4 - Added efficiency code, added setting to specify tile size if you have changed it.
2015-11-06 - Version 1.1 - Can now add layers via map notes
2015-10-30 - Version 1.0 - Release
 
Last edited by a moderator:

Mako

Veteran
Veteran
Joined
Mar 13, 2012
Messages
276
Reaction score
47
First Language
English
Primarily Uses
Literally just started looking for this 3 min ago. LMAO
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,158
Reaction score
8,426
First Language
English
Primarily Uses
RMMV
Can't wait to try it out!
 

harvard1932

Veteran
Veteran
Joined
Nov 29, 2012
Messages
40
Reaction score
10
Primarily Uses
I loveeeeeeeeeeeee XSHIFT and YSHIFT :p

It makes light 3D c:
 

Nomi

Veteran
Veteran
Joined
Dec 16, 2014
Messages
156
Reaction score
48
First Language
German
Thanks a lot Galv. Again a amazing script, I allready loved your work in Vx Ace.

I checked the comments on your homepage and figured it makes sense to load up all parallax plugins in a kind of loading screen level?

Refresh it in the loading screen and after that I can just go from map to map without further plugin lines needed? :)

btw. I would love to see your timed button attacks for rpg maker mv, loved that one ;)
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,238
Reaction score
1,440
First Language
English
Primarily Uses
RMMZ
Yeah, I use an initialize map and add the plugin calls to it to set up all maps. No need to refresh if it's in the loading map, though. Layers are created when player goes to a new map and the refresh option only needs to be used if a new layer is setup on the map the player is currently on so it creates the graphic on it, too.


So basically, once layers are created, their settings are saved. Using the plugin command again for an existing layer will modify it, no need to refresh then either :)
 

Myshu

Villager
Member
Joined
Oct 22, 2014
Messages
9
Reaction score
5
First Language
English
This is great! I was looking for a good alternative to Galenmereth's BindPictureToMap plugin for parallax mapping, and this fits the bill nicely.

PROTIP for users, though: if using a layer for the ground, make the Z value -1 (rather than 0, according to the help file) or tiles you put on the map that are below star priority won't appear.
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,238
Reaction score
1,440
First Language
English
Primarily Uses
RMMZ
Thanks Myshu.


I'm interested in how slower machines handle lots of layer images.


I have tested 255 fogs (using one cached graphic) on the same map and my laptop still ran fine. Much more impressive that doing it on Ace for me.
 

Nomi

Veteran
Veteran
Joined
Dec 16, 2014
Messages
156
Reaction score
48
First Language
German
That sounds awesone Galv...was a bit worried. Especially for Android etc.

Did you do any tests there?
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,238
Reaction score
1,440
First Language
English
Primarily Uses
RMMZ
I haven't done any tests on android, only PC. Not sure how this will run on those devices.
 

DoctorMolotov

Adrenochrome...
Veteran
Joined
Jun 17, 2015
Messages
222
Reaction score
120
First Language
English
Looking forward to testing this out. Downloading now xD
 

MikeMakes

Veteran
Veteran
Joined
Sep 30, 2015
Messages
184
Reaction score
45
First Language
English
Primarily Uses
@Galv: I have a few questions

I want to ask as someone who went inside to do this, do you know if pictures and your bust system's busts are always in front of the layer graphics (despite of their priority setting)?

Also, how much images are allowed per layer and how many layers can I do with this?

If I had layer 4 with an Image's Z at 5

then I had a layer 5 with an Image's Z at 0,

would layer 4's image cover layer 5?
 

drack_669

Warper
Member
Joined
Nov 20, 2013
Messages
3
Reaction score
2
First Language
Spanish
Primarily Uses
Well, I want to give my thanks to Galv, this plugin is awesome, really awesome.

 

If I had layer 4 with an Image's Z at 5

then I had a layer 5 with an Image's Z at 0,

would layer 4's image cover layer 5?
@MikeMakes when I put this plugin in my project I make a mistake like those, I put a image in layer 3 with z at 5, and other layer 4 with Z at 1, but i forget to put the blend of layer 4 at multipply, the layer 4 cover over the layer 3, i just adjust the blend type online.

I was playing around the amount of layers that its recognize and is really awesome, because I put shadows in layer 3 with multipply blend, in layer 4 I put lights with add blend, and later I put more shadows over in a 5th layer, and goes everything so cool.
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,238
Reaction score
1,440
First Language
English
Primarily Uses
RMMZ
I haven't tested but the busts from my plugin and pictures should always appear in front of the layers, yep.


Also, you can have as many layers on a map as you like. I wouldn't recommend using lots, though, especially if you plan to export to mobile devices.


A layer with higher Z value will appear above layers with lower Z value.


You can have multiple layers on the same z value if you like, the layer order will depend on which one you added first. :)
 

MikeMakes

Veteran
Veteran
Joined
Sep 30, 2015
Messages
184
Reaction score
45
First Language
English
Primarily Uses
Thanks drack_669 for the pointer and Galv for clarifying it for me.

 
 

SilverDash

Veteran
Veteran
Joined
Oct 11, 2015
Messages
424
Reaction score
171
First Language
Dutch
Primarily Uses
RMMV
Would be nice if I could just use mapnotetags or something instead. Now I gotta make a parallel event and erase it on each map with fog just for that. Or am I supposed to make all these plugin calls for all maps in the titlescreen?

EDIT: Nevermind, it doesn't even work If I call this while I'm already in the map. I gotta call all these in the titlescreen somewhere. Would still prefer mapnotetags.
 
Last edited by a moderator:

Nomi

Veteran
Veteran
Joined
Dec 16, 2014
Messages
156
Reaction score
48
First Language
German
You have to refresh the Layers if u are allrdy on the map :)
But you got a point with the map notetags...would be a bit simpler, so I asked myself if thats possible. Is it?
Doesnt rly matter to much, the one or the other way Galv did us a huuuge favor with this awesome script :)
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,238
Reaction score
1,440
First Language
English
Primarily Uses
RMMZ
It would be possible, yes. I will put it on my to-do list to add map notetag feature.


The reason it was designed this way is due to projects I made, I change layers a lot (daytime, nighttime, changing fogs, storm/lightning effects, etc.) so notetags on a map didn't work for me.


But I don't see why I can't include both methods :)


EDIT: I have updated to version 1.1 - can now add layers via map NOTES as well.
 
Last edited by a moderator:

MikeMakes

Veteran
Veteran
Joined
Sep 30, 2015
Messages
184
Reaction score
45
First Language
English
Primarily Uses
Is locking in the layer on the map in the upper left corner supported like how locking parallax with "!"? If so, what are the settings?
 
Last edited by a moderator:

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,238
Reaction score
1,440
First Language
English
Primarily Uses
RMMZ
The ! functionality doesn't work for layers (I honestly haven't actually tried it to know exactly how it acts).

How exactly do you want the layer to act? Sticking to the map for "parallax" mapping?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Resident Evil: Infinite Darkness :LZSgrin:
I am excite.
Actor2_4 added!

I Didnt Like or Disagree with @Andar Due to Him Saying this when We talk about VX (Not Ace): VX is the worst version of the RPG-Makers as it had only one tileset and is missing many features to improve the game development. It is a very bad choice to base a new project on.
It seems to me that I'm too lazy to make new MZ plugins with my full time job, so I'm porting my easy, simple and small MV plugins instead.
I hope I can port 1-2 such plugins per day, but this will be hard for me :)
just mechin' around this morning - MZ edit, feel free to use, must own MZ

Forum statistics

Threads
103,322
Messages
998,779
Members
134,832
Latest member
musicprod
Top