kyonides

Reforged is laughable
Regular
Joined
Nov 17, 2019
Messages
1,892
Reaction score
961
First Language
English
Primarily Uses
RMXP
OtherLayers ACE

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

Ruby:
# 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: <layers n>
<layers 2>

# - Predefine an Upper Layer
#   - It must follow one of these patterns:
<layer up n filename pix n frames n>
<layer up n filename pix n frames n switch n>
# - Examples Using the fall_ image files:
<layer up 1 fall pix 3 frames 20>
<layer up 2 fall pix 3 frames 20 switch 10>

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:

kyonides

Reforged is laughable
Regular
Joined
Nov 17, 2019
Messages
1,892
Reaction score
961
First Language
English
Primarily Uses
RMXP
The Thread Has Been Rebranded!

Well, this thread has been revamped to offer a totally different script. This time it handles pictures as an upper layer.

If you ever need to change the map's default upper layer, you can use any of the following...

Script Calls

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

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

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

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

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

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

# - Check whether or not the Upper Layer is Frozen
upper_layer(1).frozen?
 
Last edited:

kyonides

Reforged is laughable
Regular
Joined
Nov 17, 2019
Messages
1,892
Reaction score
961
First Language
English
Primarily Uses
RMXP
Layers & More Layers!

Starting today, you can add several upper layers to a specific map! :D
The initial release only let you add a single upper layer but this has changed in the latest installment of my script.

Set a Map's Total Number of Upper Layers
Pattern: <layers n>
Ruby:
<layers 2>

I have updated the previous posts accordingly.
 

kyonides

Reforged is laughable
Regular
Joined
Nov 17, 2019
Messages
1,892
Reaction score
961
First Language
English
Primarily Uses
RMXP
Changes and Improvements Now Available!

In the latest edition of my script I have modified the way the map spriteset would look for any given layer note to make sure it would not skip any layer at all.

Now it's also possible to freeze and thaw the only waterfall that has ever existed in the demo! :D

Freeze or Thaw the Upper Layer
Ruby:
upper_layer(1).freeze!
upper_layer(1).thaw!

Check whether or not the Upper Layer is Frozen
Ruby:
upper_layer(1).frozen?
 

kyonides

Reforged is laughable
Regular
Joined
Nov 17, 2019
Messages
1,892
Reaction score
961
First Language
English
Primarily Uses
RMXP
Maintenance Update
Version 0.6.1 Released!

Important Bug Fix: I forgot to update an internal call to a method after a name change. I simply replaced it with the actual contents of that method for simplicity's sake.

I'm sorry for the small inconvenience this might have caused your virtual pet actors to endure during the playtesting of the demo. :p
 

kyonides

Reforged is laughable
Regular
Joined
Nov 17, 2019
Messages
1,892
Reaction score
961
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

Update! Small combo video of the Cameo Characters if you're interested!
Tried to upload a max zoom-in of the whole second floor, from 16 individual screenshots, but the resulting file is too big to upload directly as a status post.
If I wanted to make re-available the absolutely horrendous demo of Tundra I made in 2004, what would be the best method of doing so? (considering that version isn't a game in progress nor will it be completed)
The monkey side of my brain: "Making emote poses would really help with directing cutscenes"
The side of my brain fighting the Cold Sadness(TM): "That would bring our required sprite count for just the main cast somewhere around 200 if we gave each of them 2 poses..."

and so I drink a hot cocoa, and lament my work schedule.
"Do this task for me, and you will be allowed to eat your weight in gold as a reward".

Forum statistics

Threads
136,634
Messages
1,268,196
Members
180,309
Latest member
Agilen
Top