Autotile Tile IDs

Autotile Tile IDs

Introduction

This was something I was bored enough to experiment with and learn a little more about. Okay, it was more like I had to since I'm writing a Tile Substitution / Placement script that -- as of this writing -- will be up very soon. Some of the information here is probably a no-brainer to those who worked with autotiles before.

Autotile Indexes

Each autotile contains 48 (ranges from 0..47) different tiles which appear in different directions. I have put together a list that explains all 48 of them should you ever want to use this information in some way. Here they are:

Spoiler
  • 00
    index_0.gif
    Center (No edges)
  • 01
    index_1.gif
    ↖ (Outside Corner) Edge
  • 02
    index_2.gif
    ↗ (OC) Edge
  • 03
    index_3.gif
    ↖↗ (OC) Edges
  • 04
    index_4.gif
    ↘ (OC) Edges
  • 05
    index_5.gif
    ↖↘ (OC) Edges
  • 06
    index_6.gif
    ↗↘ (OC) Edges
  • 07
    index_7.gif
    ↖↗↘ (OC) Edges
  • 08
    index_8.gif
    ↙ (OC) Edge
  • 09
    index_9.gif
    ↖↙ (OC) Edges
  • 10
    index_10.gif
    ↙↗ (OC) Edges
  • 11
    index_11.gif
    ↖↙↗ (OC) Edges
  • 12
    index_12.gif
    ↙↘ (OC) Edges
  • 13
    index_13.gif
    ↖↙↘ (OC) Edges
  • 14
    index_14.gif
    ↙↗↘ (OC) Edges
  • 15
    index_15.gif
    ↖↗↙↘ (OC) Edges
  • 16
    index_16.gif
    ← Edge
  • 17
    index_17.gif
    ←, ↗ (OC) Edges
  • 18
    index_18.gif
    ←, ↘ (OC) Edges
  • 19
    index_19.gif
    ←, ↗↘ (OC) Edges
  • 20
    index_20.gif
    ↑ Edge
  • 21
    index_21.gif
    ↑, ↘ (OC) Edges
  • 22
    index_22.gif
    ↑, ↙ (OC) Edges
  • 23
    index_23.gif
    ↑, ↙↘ (OC) Edges
  • 24
    index_24.gif
    → Edge
  • 25
    index_25.gif
    →, ↙ (OC) Edges
  • 26
    index_26.gif
    →, ↖ (OC) Edges
  • 27
    index_27.gif
    →, ↖↙ (OC) Edges
  • 28
    index_28.gif
    ↓ Edge
  • 29
    index_29.gif
    ↓, ↖ (OC) Edges
  • 30
    index_30.gif
    ↓, ↗ (OC) Edges
  • 31
    index_31.gif
    ↓, ↖↗ (OC) Edges
  • 32
    index_32.gif
    ←→ Edges
  • 33
    index_33.gif
    ↑↓ Edges
  • 34
    index_34.gif
    ↖ (Inside Corner) Edge
  • 35
    index_35.gif
    ↖ (IC), ↘ (OC) Edge
  • 36
    index_36.gif
    ↗ (IC) Edge
  • 37
    index_37.gif
    ↗ (IC), ↙ (OC) Edge
  • 38
    index_38.gif
    ↘ (IC) Edge
  • 39
    index_39.gif
    ↖ (OC), ↘ (IC) Edge
  • 40
    index_40.gif
    ↙ (IC) Edge
  • 41
    index_41.gif
    ↙ (IC), ↗ (OC) Edge
  • 42
    index_42.gif
    ↑←→ Edges
  • 43
    index_43.gif
    ↑←↓ Edges
  • 44
    index_44.gif
    ↓←→ Edges
  • 45
    index_45.gif
    ↑→↓ Edges
  • 46
    index_46.gif
    ↖↗↙↘ (IC) Edges
  • 47
    index_47.gif
    Autotile Display Graphic
Autotile Tile IDs

If you're familiar with RPG Maker XP, you'd know that each tileset has a blank tile at the very top left of the tileset and then 7 autotiles the user can specify to the right of it. Here's a quick list containing tile IDs for the blank tile and each autotile in the tileset.

Spoiler
  • 00
    autotile_0.gif
    Blank Tile (0..47)
  • 01
    autotile_1.gif
    Autotile #1 (48..95)
  • 02
    autotile_2.gif
    Autotile #2 (95..143)
  • 03
    autotile_3.gif
    Autotile #3 (144..191)
  • 04
    autotile_4.gif
    Autotile #4 (192..239)
  • 05
    autotile_5.gif
    Autotile #5 (240..287)
  • 06
    autotile_6.gif
    Autotile #6 (288..335)
  • 07
    autotile_7.gif
    Autotile #7 (336..383)
Formula

Now you're probably wondering, "okay, now what?" So say you need to call them or change them through the $game_map.data[x, y, i] = value call and you need to use an autotile for some reason. See, autotiles can't shape themselves, so you need to find the tile ID that best suits where you're putting a particular autotile. Now if you can't be bothered to remember all of the tile IDs and such (and honestly, I can't say I blame you because I wouldn't either), then you can use a quick formula I just made up to use an autotile should you ever want to:

(48 * autotile) + index

autotile: 0: Blank, 1-7: Autotiles #1-7

index: Autotile Tile Index (0..47) (refer to list above for directions of edges)
Approved, but please try to add some tags so it's easier to find. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/autotile-tile-ids.2827/