ID:155482
 
So this is my first attempt at a platformer. I have a gravity proc that is called whenever you call for EAST or WEST. I wanted to make your gravity=0 whenever you entered or came in contact with the ladder, so your character will turn around and use the default NORTH action, walking upwards as if it were a top down game. However, whenever my character climbs the ladder, Gravity either isn't set back to 1 or the mob.Gravity proc isn't called in my client/West() or client/East() procs. Any help or advice?




turf
Ladder
icon='icons.dmi'
icon_state="ladder"
Entered(mob/M)
M.Gravity=0
Exited(mob/M)
M.Gravity=1

Thanks in advance!
Do a test
turf
Ladder
icon='icons.dmi'
icon_state="ladder"
Entered(mob/M)
M<<"[M].Gravity is [M.Gravity]"
M.Gravity=0
M<<"[M].Gravity is now [M.Gravity]"
Exited(mob/M)
M<<"[M].Gravity is [M.Gravity]"
M.Gravity=1
M<<"[M].Gravity is now [M.Gravity]"

and post the results