ID:273834
 
I'm trying to overlap icons. I used the "Ctrl-Click to insert" and it looks right on the map, but then I run the game and I can only see the top icon surrounded by black, rather than seeing the bottom icon beneath it. What am I doing wrong?
Can you tell us anything about the (turfs)?
In response to DarkProtest (#1)
There's nothing defined about them at all except the icon and clearing the name, and then for some of them I manually changed the icon_state.
In response to Chessmaster_19 (#2)
That's really funny; the problem was that I was just leaving the icon_state as blank and using the default icon_state for the base icon. When I layered it, it no longer used the default icon_state.

Is this a bug? Or just an obscure rule for how icon_states work? (Or is using the default icon_state simply depreciated?)
In response to Chessmaster_19 (#3)
turf
bottom_layer
/*
icon = 'icon.dmi'
icon_state = ""
*/

top_layer
/*
icon = 'icon.dmi'
icon_state = ""
*/

layer = TURF_LAYER + 1


Setting the icon's layer above that of a normal turf's layer will layer it over any other turf with normal TURF_LAYER. This can also be identified with MOB_LAYER, FLOAT_LAYER, or just a numeral value.
In response to Chessmaster_19 (#3)
Chessmaster_19 wrote:
That's really funny; the problem was that I was just leaving the icon_state as blank and using the default icon_state for the base icon. When I layered it, it no longer used the default icon_state.

Is this a bug? Or just an obscure rule for how icon_states work? (Or is using the default icon_state simply depreciated?)

It's a special behavior of overlays. When an overlay's icon, icon_state, or dir are left blank, it will assume the values of the object it's attached to. This applies to flick() as well.