Blockland Forums > Modification Help
Function for Walking
Lugnut:
I think he meant walking movement, not physical movement.
If you did,
moveforward();
Movebackward();
Then right, left, etc.
Port:
--- Quote from: Lugnut1206 on January 25, 2012, 02:16:28 AM ---I think he meant walking movement, not physical movement.
If you did,
moveforward();
Movebackward();
Then right, left, etc.
--- End quote ---
Those functions are simply helpers and/or keybind functions that set the value of these variables:
--- Quote from: Port on January 25, 2012, 02:14:00 AM ---$mvBackwardAction
$mvForwardAction
$mvLeftAction
$mvRightAction
$mvUpAction
$mvDownAction
--- End quote ---
Also, you can set something like $mvForwardAction to 0.5 to walk forward half as fast as you normally would.
Lugnut:
OK, still think the functions are easier to use
Port:
Thing is, he asked how C (walk) worked, and you cannot do moveForward(0.3); and I recommend using the variables instead.
Chrono:
$runMultiplier