じ☆ve冰风 发表于 7 天前

Using scroll rates to create depth perception

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:



http://himeworks.files.wordpress.com/2013/03/overlaymapsani1.gif



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



http://dl.dropbox.com/u/23043573/RPG%20Maker/Screenshot/overlayMapsEx1.jpg



Sky City



http://dl.dropbox.com/u/23043573/RPG%20Maker/Screenshot/overlayMapsEx2.jpg



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.



http://dl.dropbox.com/u/23043573/RPG%20Maker/Screenshot/overlayMapsEx3.jpg



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.


本贴来自国际rpgmaker官方论坛作者:Tsukihime处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/using-scroll-rates-to-create-depth-perception.10442/
页: [1]
查看完整版本: Using scroll rates to create depth perception