ID:266535
 
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
mob
verb
Fly()
world<<"[usr] flys! Whoop-dee-doo!!!!"
usr.density = 0
icon_state = "Fly"
//Insert Shadow-Whatever here
Land()
usr.density = 1
icon_state = "Whatever was before Fly"
//Insert Shadow-Whatever here

Or something like that
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