mob
Login()
..()
var/icon/I = icon(icon,icon_state)
I.Flip(SOUTH)
var/image/i = image(I,src,layer=TURF_LAYER-2)
i.pixel_y -= 30
underlays += i
turf
city
icon = 'humancity.dmi'
floor
icon_state = "1"
water
icon_state = "w"
layer=TURF_LAYER-3
New()
icon_state = "wu"
overlays += image('humancity.dmi',src,"water",layer=TURF_LAYER-1)
Problem description:
What I'm attempting to do here is to have a water reflection of the player's image.
The idea is simple: I give the player an underlay whose layer is TURF_LAYER-2.
The floor which the water is on is TURF_LAYER-3, and the transparent overlay of the water is TURF_LAYER-1, thus giving me:
LAYER(0) = (NULL)
LAYER(-1) = Transparent Overlay
LAYER(-2) = Reflection
LAYER(-3) = Floor
The problem is, however, when I run he code, the mob's underlay (the reflection) is actually on top of all of the turf, including /turf/city/floor , whose layer is TURF_LAYER.
I've tried changing the layers (tried to change values, and then layer type, etc.), but I didn't get any good results.
Any ideas as to why this is happening?
Thanks!