This is one of the most importent code I need.In Ebonshadow's movement lib I saw that when you press fly,you don't need the icon for it,it just goes up into air.The code wasn't clear for me,I didn't know what to copy(i don't want the whole lib).
So I need the code.I stink at making flying icons so,i really need the code.If you can help me please do!Thanks!And no uselss post please.
-Kappa the Imp
ID:266535
![]() Apr 3 2002, 4:31 pm
|
|
I doubt that he had it that way for you need the icon for it, and he may have switched icon_states, try something like,
mob/var/fly=0 mob/verb/Fly() if(src.fly==0) src.icon_state="fly" density=0 layer=FLY_LAYER src.fly=1 else src.icon_state=null density=1 layer=MOB_LAYER src.fly=0 |
Or something like that