Code:var/COVER_LAYER = 999
area
var
icon/covericon
covericon_state = ""
image/coverimage
Del()
if(coverimage) del(coverimage)
..()
Entered(O)
..()
if(coverimage && ismob(O) && O:client)
O:client.images -= coverimage
Exited(O)
..()
if(coverimage && ismob(O) && O:client)
O:client << coverimage
New()
..()
if(covericon)
coverimage = image(covericon,src,covericon,COVER_LAYER)
client
New()
..()
for(var/area/A in world)
if(A.coverimage)
src << A.coverimage
var/area/A = mob.loc
while(A && !istype(A))
A = A.loc
if(A)
A.Entered(mob)
area
church
icon = 'turf.dmi'
layer = 999
covericon = 'church.png'
Problem description: Alright, I tried filling the area I wanted the roof in, but when I tested it, it just filling the area with the first tile. I tried adding one tile to the beginning spot of the png, it worked but entering the roof, making it disappear was in a different spot. I sort of stuck and any help will be greatly appreciated. Thank you in advance.
</<></<>
ID:138763
Dec 15 2011, 11:11 pm
|
|
Dec 16 2011, 11:09 am
|
|
bump
|
You weren't very clear with what you're trying to do. Try to explain a little better?
|
In response to Darkwave Surfer
|
|
sorry about that. Well I wanted the roof (which is multi-tiled) to disappear when the mob enters the roof's image.
|