ID:269650
 
I know this sounds dumb, but can someone explain flick to me?

I would like to know how it works... and yeah, I don't have a clue.

Specifically, I have an animation to slide a door open. I want it to stay open until the person comes through, then close.


--Vito
OK, this is only a try, I don't know if that works.
obj/door
verb/open()
set background=1//I think this is better since there is a loop in this verb
set src in oview(1)
src.icon_state="Open"//make it look open
Flick('opening.dmi',src)//make it animate its opening
src.density=0
label1
sleep(1)
for(var/mob/PC/P in view(src,1))
goto label1//if there is a player near the door don't close
Flick('Closing.dmi',src)
src.icon_state=""//make the door looking closed again
src.density=1//door closed again

In response to CIB
thanks. that's all.

--Vito