ID:149794
 
id dont understand this one bit! NOT AT ALL!

mob/var/speed=3
mob/var/walk=1
mob/Move()
if(src.walk)
..()
src.walk = 1
sleep(speed)
src.walk = 1

ok this speed code has been working GREAT! for the past three days, i added a few things else to my game not affecting loggin or any of these variables

AND OUT OF NOWHERE IT JUST STOPS WORKING!!
THE CODE PROVIDES NO AFFECT ON THE PLAYERS SPEED
NO MATTER WHAT THE VARIBLE IS SET AT! just like that
no errors, no runtime probs just that
Hgame9 wrote:
id dont understand this one bit! NOT AT ALL!

mob/var/speed=3
mob/var/walk=1
mob/Move()
if(src.walk)
..()
src.walk = 1
sleep(speed)
src.walk = 1

Did you copy and paste that directly from your game? If so, your problem's pretty obvious... you accidentally set the walk var to be 1 all the time. Since it's 1 all the time, if (src.walk) is always true, so it always lets the player move... you want to change the middle part to set walk to 0, sleep, then set walk back to 1.