turf
Gate
icon = 'Gate.dmi'
icon_state = "Wall"
pixel_x = -32
density = 1
layer = MOB_LAYER+10
opacity = 1
DblClick()
switch(alert("Would you like to go in?",,"X","O"))
if("X")
density=0
opacity=0
icon_state = "Wall_Down"
sleep(50)
density=1
opacity=1
icon_state = "Wall_Up"
sleep(30)
icon_state = "Wall"
if("O")
return
The problem is that first it is only dense in one spot so you can walk on it, second the animation freaks out and goes up and down until the sleep(40) is over. What did I do wrong?