ID:178168
 
i have 2 icons, one is an open door, the other is a closed door. how would i make it to where if u click the closed door it will open and u can walk through it?
obj/door
icon = 'Door.dmi'
icon_state = "Closed"
density = 1
opacity = 1
Click()
if(src.icon_state = "Closed")
src.icon_state = "Open"
src.density = 0
src.opacity = 0
else
src.icon_state = "Closed"
src.density = 1
src.opacity = 1

To do the icon states, right click on the icon in the icon editor, edit state, then rename it to Closed. Then open your other one, copy into the same file, and do the same, but name it Open.