Using scroll rates to create depth perception

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,230
Reaction score
3,082
First Language
English
This tutorial goes over how you can use different map layers to create depth perception when the player is traveling across your map.


It uses "scroll rates", which determines how fast a map scrolls per step taken.


By default, the map scrolls 32 pixels per tile, or basically one tile. However, you can specify higher or lower scroll rates on overlay maps to create various visual effects:





Required


Script: Overlay Maps


Tutorial


Our final map will be composed of two layers: the sky island that we will stand on, and the sky city below.


I took out most of the floors to make it easier to see what is happening.


The first step is to simply prepare your two maps. It is just regular mapping


Sky Island





Sky City





The second step is to combine them using overlay mapping.


1. We will be standing on sky island, so we will use the sky city as an overlay map. Sky city is map 4.


2. We want to place it one layer under our current map, so we set the layer order to -1.


3. Offsetting is not important, so we leave it at (0, 0). This will just draw the sky city beginning at the upper-left corner of the map.


4. We want the sky city to scroll slower, so we give it a scroll rate of 8.





And that's it! Just load up the game and you should be able to see nice things when you're walking on sky island.
 
Last edited by a moderator:

BILL_NYE_THO

The Science Guy
Veteran
Joined
Feb 17, 2013
Messages
361
Reaction score
21
First Language
English
Primarily Uses
So at this point you're my favorite person on this forum. :p

Keep up the fantastic work, and fantastic tutorial.
 

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

Latest Threads

Latest Profile Posts

Karen: Hi, I have a condition that prevents me from wearing a mask. :)

Employee: Can you tell me what it is?

Karen: >:(
Feeling a little overwhelmed... There are so many things to do.
- Building a simple website for portfolio
- Setup *******
- Manage social media
There are so many things inside of these tasks :(
Meet the cute little ghost, FhooFhoo. :kaopride:
If anyone here is looking for another high-potential RPGMaker game--besides She Dreams Elsewhere--be sure to follow Lawmage Academy. Good social media presence will take that game far.
Lol, I was about to write a small tutorial and realized it would belong to the MZ section ....that does not exist yet.

Forum statistics

Threads
99,574
Messages
966,819
Members
131,231
Latest member
Bektos
Top