Blockland Forums > Modification Help
Very odd, Will this work?
Bloxxed:
I'm just was making a a simple mod, and for some reason, it doesn't work, help?
--- Code: ---function move()
{
moveForward(1);
schedule(1000,0,"moveForward","0");
moveBackward(1);
schedule(1000,0,"moveBackward","0");
$looping=schedule(30000,0,"move","");
}
--- End code ---
And, it won't work, anyone know why?
Headcrab Zombie:
You're calling moveForward and moveBackward at the same time, which will cause the player to stay still.
Try this
--- Code: ---function move()
{
moveForward(1);
schedule(1000,0,moveForward,0);
schedule(2000,0,moveBackward,1);
schedule(3000,0,moveBackward,0);
$looping=schedule(30000,0,move);
}
--- End code ---
Triple Nickels:
^
but I think badspot disabled moveforward/backward along with mouseclick a few versions ago
Headcrab Zombie:
Nope.
Just tested all three of those, and they worked.
Bloxxed:
--- Quote from: Triple Nickels on June 12, 2010, 01:39:36 PM ---^
but I think badspot disabled moveforward/backward along with mouseclick a few versions ago
--- End quote ---
No he didn't, it still works when I do moveforward(1); and Movebackward(1);
Also Headcrab Zombie you're a life saver.
Thank you <3
Warning - while you were typing a new reply has been posted. You may wish to review your post.
Darnit