ID:175972
 
I can't can't get the pixel offsets to move with the cahracters direction. It on'y works if the charater is facing that direction when u activate flight. Goku72 I know u got it to work. Can anybody help me get this to work.
Here is the code:

obj
bukujutsu
verb
bukujutsu()
set name = "Bukujutsu"
set category = "Fighting"
if(usr.spar == 1)
usr << "Not while sparring."
if(usr.spar == 0)
if(usr.z == 10||usr.z ==3)
usr << "Some strange force keeps you grounded..."
else
if(usr.flight == 0)
usr << "You begin to float above...."
usr.density = 0
usr.flight = 1
usr.meditate = 0
usr.icon_state = "buku"
usr.overlays += 'flightaura.dmi'
if(usr.ssj == 1)
if(usr.dir == 1)
usr.overlays += new/obj/ssjauranorth
else
if(usr.dir == 2) usr.overlays += new/obj/ssjaurasouth
else
if(usr.dir == 4) usr.overlays += new/obj/ssjauraeast
else
usr << "You float to the ground..."
usr.density = 1
usr.flight = 0
usr.meditate = 0
usr.icon_state = ""
usr.overlays -= 'flightaura.dmi'
Coolroman123 wrote:
I can't can't get the pixel offsets to move with the cahracters direction. It on'y works if the charater is facing that direction when u activate flight. Goku72 I know u got it to work. Can anybody help me get this to work.
Here is the code:

obj
bukujutsu
verb
bukujutsu()
set name = "Bukujutsu"
set category = "Fighting"
if(usr.spar == 1)
usr << "Not while sparring."
if(usr.spar == 0)
if(usr.z == 10||usr.z ==3)
usr << "Some strange force keeps you grounded..."
else
if(usr.flight == 0)
usr << "You begin to float above...."
usr.density = 0
usr.flight = 1
usr.meditate = 0
usr.icon_state = "buku"
usr.overlays += 'flightaura.dmi'
if(usr.ssj == 1)
if(usr.dir == 1)
usr.overlays += new/obj/ssjauranorth
else
if(usr.dir == 2) usr.overlays += new/obj/ssjaurasouth
else
if(usr.dir == 4) usr.overlays += new/obj/ssjauraeast
else
usr << "You float to the ground..."
usr.density = 1
usr.flight = 0
usr.meditate = 0
usr.icon_state = ""
usr.overlays -= 'flightaura.dmi'

where you have usr.dir == 1, try changing it to a direction like NORTH or SOUTH,EAST,WEST,NORTHEAST, etc. maybe that should help.....