Why does the B tile have to have a star at the top?

Status
Not open for further replies.

Nightblade50

Developer of "Delta Origins"
Veteran
Joined
Nov 10, 2016
Messages
2,133
Reaction score
4,253
First Language
English, French
Primarily Uses
RMVXA
I just had a quick question. In a tileset, why does the B tileset have to have a star for the first tile? I tried changing it but I couldn't move. Why should it be a star?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I just posted this in that thread:

If you have that tile set to X, it means you will hardly be able to walk anywhere. If you have it set to O, it means you'll be able to walk almost everywhere.

Your map is made up of layers. You have two bottom layers, and one top layer. You can't control which one you're drawing on. Each layer has a grid, the same width and height of the map, and each "cell" in the grid contains a tile id. If you haven't drawn on that cell on that layer, the tile id it contains is 0. This is the first tile in the B tab.

When the game checks for passability, it starts from the highest layer and works its way to the lowest layer, until it finds a tile that has passage settings. So if you haven't drawn on the tile, it will use tile id 0, the first tile in the B tab, and look at its passage settings. If it's X, it says no passage, and stops checking. If it's O, it says passage is okay from all directions, and stops. A tile that has its passage set to a star tells the program to ignore the passage of the tile on the current layer, and look at what's beneath.

That's why the top left B tile always has to be a star - it's the 'erase' tile, and the 'default' tile for when you haven't drawn anything, and it tells the program to look at what's on the layer below to find the passage setting.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,354
Reaction score
8,533
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,078
Members
137,580
Latest member
Snavi
Top