The problem here is that when my character does a makio he goes into the icon_state but he dosnt move, here is the coding for the jump, rail, and makio.
The Rails...
RailMiddleLR
name = "Rail"
icon = 'Turfs.dmi'
icon_state = "RailMiddleLR"
Enter()
if(usr.Jumping == 1)
return 1
else
return 0
Entered()
spawn(10)
if(usr.CurrentTrick == 1)
return
else
usr<<"You got triped on the rail!!"
step(usr,SOUTH)
RailLeftLR
name = "Rail"
icon = 'Turfs.dmi'
icon_state = "RailLeftLR"
Enter()
if(usr.Jumping == 1)
usr.OnaRail = 1
return 1
else
return 0
Entered()
spawn(10)
if(usr.CurrentTrick != 1)
usr<<"You got triped on the rail!!"
step(usr,SOUTH)
Exit()
if(usr.dir == WEST)
usr.Jumping = 0
usr.OnaRail = 0
usr.CurrentTrick = 0
RailRightLR
name = "Rail"
icon = 'Turfs.dmi'
icon_state = "RailRightLR"
Enter()
if(usr.Jumping == 1)
usr.OnaRail = 1
return 1
else
return 0
Entered()
spawn(10)
if(usr.CurrentTrick != 1)
usr<<"You got triped on the rail!!"
step(usr,SOUTH)
Exit()
if(usr.dir == EAST)
usr.Jumping = 0
usr.OnaRail = 0
usr.CurrentTrick = 0
else
return
The Jump:
mob
proc
Jump()
set category = "Tricks"
src.Jumping = 1
flick("Jumping",src)
spawn(5)
step(src,src.dir)
spawn(20)
if(usr.CurrentTrick != 1)
usr.Jumping = 0
src<< "You Jumped!"
The Makio:
Makio()
if(usr.OnaRail == 1)
set category = "Tricks"
usr.CurrentTrick = 1
usr.icon_state = "Makio"
spawn(10)
while(usr.OnaRail == 1)
walk(usr,usr.dir)
sleep(1)
usr<<"You did a Makio!"
else
usr<<"You can't do a makio on the ground!"
Thank you for your help!
ID:175988
Feb 22 2003, 11:56 am
|
|