じ☆ve冰风 发表于 前天 17:00

Mapping an auto tile area so you can walk under it

HOW TO MAP A DOORWAY YOU CAN WALK UNDER, A 'SECRET' PATH, ARCHWAY, WHATEVER YOU FANCY
IN AN AUTO TILE AREA​



This tutorial is made as a result of a request.NOTE it doesn’t matter if you are using VX Ace or MV, the process is identical.

People often want the player to walk under tiles to get to another part of the map.It could be a ‘secret path’ or an archway, or simply a doorway.This tutorial shows how this can be done in the editor using straightforward mapping.In addition to RPG Maker you will need an image manipulation program e.g. GIMP (free), PhotoShop, paint.NETI have used GIMP for this.

You want the player to move from the large room to the smaller, though an apparently solid wall.




Create B-E tiles

You cannot use your autotiles for this, as you need them to be set to star passability.

Open your A4 tile sheet in your image program.Copy the large lower section of the ceiling tile and put it on a work sheet, with the grid set to half the normal tile size.That means that if you are using VX Ace your grid will be 16 x 16, and if you are using MV your grid will be 24 x 24.You will then have something that looks like this.



So that you can see more clearly what is happening, I have hidden the dark centre of the tile for the next step.Copy the tiles marked 1, 2 and 3 (if needed) and put them on the tile sheet you will be using for mapping. Import the sheet into your project and mark them with star passability.






Mapping

On your map, you will need walkable tiles where you want the player to go.Use shift-click mapping so that you do not disturb your ceiling autotiles.If you do not know how to shift-click tiles, see this tutorial – it is a skill that you will need for a lot of things.




Place tiles 1 and 2 over the gap and you now have a way for the player to walk along – but with a problem! The top of the head will show.




That is because sprites are offset by a few pixels.To solve this, simply place another copy of tiles 1 and 2 on the row above the path over your auto tile.The sprite is now no longer visible, and your player can get through to the other side.




Tile 3 is only used if the area you want them to walk under is wider than 2 tiles.You use them in exactly the same way.

Single tile e.g. doorway.

Take just the outer half of your autotile and combine it into one complete tile and use in the same way.




Here are a couple of screenshots showing single tile doorway and much wider hidden path.







本贴来自国际rpgmaker官方论坛作者:Kes处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/mapping-an-auto-tile-area-so-you-can-walk-under-it.119718/
页: [1]
查看完整版本: Mapping an auto tile area so you can walk under it