kyonides

Reforged is laughable
Regular
Joined
Nov 17, 2019
Messages
1,931
Reaction score
983
First Language
English
Primarily Uses
RMXP
OtherLayers VX

by Kyonides

Introduction

This script allows you to use a static picture or a series of pictures as a custom upper layer for the current map.

I am sure there gotta be other scripts that provide similar features and you know what?
I don't care about that! :p

Embedded Notes

VX has no Map Note Box so you gotta use the Map's Name Box instead.


Ruby:
# This script lets you add another layer where you can place images that can
# be either static or animated.

# Create a directory called Layers inside the Graphics folder.
# Thereafter you can add as many images as deemed necessary.

# Examples: fall_1.png, fall_2.png, fall_3.png

# The state of a specific Game Switch will determine whether or not a given
# layer is visible at that moment.

# - Set a Map's Total Number of Upper Layers
# - Pattern: <LUMn>
<LUM2>

# - Predefine an Upper Layer
#   - It must follow one of these patterns:
#   The n's there stand for LayerID, No. Pictures, Frames and SwitchID (if any)
# <LUn filename n n>
# <LUn filename n n Sn>
# - Examples Using the fall_ image files:
<LU1 fall 3 20>
<LU2 fall 3 20 S10>

Optional Script Calls

Ruby:
# - Change the Map's Upper Layer - It will replace any previous one!
upper_layer(Number).name = "BaseFileName"

# - Change the Upper Layer's Number of Pictures - if Animated
upper_layer(Number).total = TotalPictures

# - Change the Upper Layer's Timer (in Frames)
upper_layer(Number).timer = Frames

# - Change the Upper Layer's Switch ID
upper_layer(Number).switch_id = SwitchID

# - Change the Upper Layer's Data With a Single Call
upper_layer(Number).set_data(TotalPictures, Frames, SwitchID)

# - Freeze or Thaw the Upper Layer
# upper_layer(Number).freeze!
# upper_layer(Number).thaw!

# - Check whether or not the Upper Layer is Frozen
# upper_layer(Number).frozen?


Terms & Conditions

Free for use in non commercial games.
Due credit is mandatory.
Do not repost it anywhere!
That's it! :p
 
Last edited:

minazivkovic6

Warper
Member
Joined
Sep 19, 2023
Messages
1
Reaction score
0
First Language
English
Primarily Uses
RMVX
Do you think there would be a way to set and control the pictures' display priority in the same way as the in-game events are set and controlled? I'd like to set some pictures to show below characters and some above them. While weather and normal animations also having priority over the pictures
 

kyonides

Reforged is laughable
Regular
Joined
Nov 17, 2019
Messages
1,931
Reaction score
983
First Language
English
Primarily Uses
RMXP
Interesting Update

Now that version 0.7.0 has been released, you can also count on lower layers to further modify the appearance of your maps. This is why you can now use the lower_layer(SomeNumber) call in the script box at any given time. Just make sure you have read the embedded instructions on how to configure them.
 

Latest Threads

Latest Posts

Latest Profile Posts

Alternative plugins for YEP Weapon Animation is
20/59 maps with the door fix in place. Also knocked a few other bugs out (mostly related to having two banks of the same # too close to each other). Also tweaked the one-way doors slightly so they close with the knobless sprite.
Enemy_MariXimas[Idle].gif
Everyone's getting ready. Mary, in particular, is really mad, why tho?
Well, I've officially filed a complaint against my coworker.
Legit almost killed me twice today.
First time, he was holding a freaking knife straight out and walking down a hallway. I rounded a corner and barely missed it.
Second time, he "handed"(dropped) me a bucket of water while I was trying to adjust the broaster. Not exactly sure what would happen, but water and boiling oil usually don't go well together.

Forum statistics

Threads
136,864
Messages
1,270,849
Members
180,631
Latest member
Alone1311
Top