设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 71|回复: 0

[制作教程] How to determine your TileID

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    前天 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    4446

    主题

    864

    回帖

    2万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    22899
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    28239

    灌水之王

    发表于 4 天前 | 显示全部楼层 |阅读模式
    Tutorial topic: TileIDs, including Autotiles!

    Brief description: I'll be going over how to determine a tile's TileID (which is used in the map data file) using the tilesheet and the shape of the desired autotile (if applicable). This info will most likely be useful for scripters, though @Shaz has just released an awesome new plugin to change a map tile during your game, and this can be useful for her plugin as well.

    Requirements: RPG Maker MV, a reason to know the tile IDs

    Tutorial body:
    Before we start, some terms:

    Tile:  One square on the default map grid. For MV, a tile is a 48 x 48 pixel square.

    Tilesheet:  One PNG file containing multiple tiles or autotiles arranged in a predefined pattern, with no empty space between the tiles.

    Tileset:  A collection of tilesheets defined in the editor, that can consist of up to nine tilesheets designated A1, A2, A3, A4, A5, B, C, D, and E. Each map can use only one tileset.

    TileID:  A number stored in a map data file that tells the game which tile from the map's tileset to draw in which location. The number's position in the file corresponds to the grid location on the map. The value of the TileID corresponds to a particular tile from the tileset.


    Tilesheet numbering

    Strangely enough, tile IDs start with the non-autotile sheets first. This means we start with TileID 0 on the top-left tile of the B tilesheet. (Note: Therefore, TileID 0 always corresponds to a blank tile!) Then we proceed left-to-right, then top-to-bottom, through the B tilesheet, then C, D, E, and finally A5 tilesheet (being the only non-autotile A sheet). We'll get to autotiles in a little bit.

    Here are the tile IDs for the non-autotile sheets:
    Tilesheet  B:     0 -  255
    Tilesheet  C:    256 -  511
    Tilesheet  D:   512 -  767
    Tilesheet  E:   768 - 1023
    Tilesheet A5:  1536 - 1663

    And here are some template PNGs you can lay over your tilesheet PNG image to see the numbers directly!
    Spoiler: TileID Templates for Non-Autotiles
    B:



    C:



    D:



    E:



    A5:

    For those paying attention, your eyes are not playing tricks on you; TileIDs 1024-1535 do not correspond to any tilesheet (at least as far as I can tell!). This is also true for TileIDs 1664 - 2047. I assume room was left here for future growth, but that's only a guess.


    Autotiles

    Here are the tile IDs for the autotile sheets:
    Tilesheet A1:  2048 - 2815
    Tilesheet A2:  2816 - 4351
    Tilesheet A3:  4352 - 5887
    Tilesheet A4:  5888 - 8191

    Figuring out your tileID is somewhat more complicated for an autotile, as you might expect. First of all, the tilesheets are NOT numbered in a straightforward left-to-right, top-to-bottom fashion. Secondly, each autotile corresponds to up to 48 different shapes. (Note:  There are only up to 47 unique shapes, but one shape repeats to give the math-friendly number 48.)

    To make it easier, I've made a set of images to show you how to find your autotile TileID. For each tile you'll need to consult two images; the tilesheet numbering sheet and the autotile type shape sheet. There are three different types of autotiles: floor, wall, and waterfall types.

    1) Find the starting TileID and the autotile type from the tilesheet numbering sheet. You can even place this image over top of your tilesheet to help you out. (Note:  A1 autotiles contain animated autotiles. These look like three nearly-identical autotiles, but are actually treated as one autotile.)

    2) Look on the correct autotile type numbering sheet to find the autotile shape you want, and add the corresponding number to the starting TileID.

    Note: The plus signs (+) are located on these sheets to help you remember that you need to add the two numbers together to get your tileID.

    Here are the template PNGs for autotiles!
    Spoiler: Autotile Tilesheet Numbering Templates
    A1:



    A2:



    A3:



    A4:
    Spoiler: Autotile Type Numbering Sheets
    Floor Type:



    Wall Type:



    Waterfall Type:

    And there you have it! You now know how to find a TileID for any tile. Hopefully this information is helpful to some of you.



    本贴来自国际rpgmaker官方论坛作者:Llareian处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/how-to-determine-your-tileid.91129/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-7-14 14:20 , Processed in 0.091063 second(s), 56 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表