Is there away to set a macro for moving forward and back no madder any direction?(like if your facing left and you press A you go forward and if you press D you go backwards)
If so how?
ID:175863
Mar 2 2003, 4:15 pm
|
|
In response to Dago
|
|
He means like a drive mode, where forward moves you in your direction, backwards moves you in the opposite direction, etc.
client North() step( mob,mob.dir ) South() vat/turf/T = get_step( mob, turn( mob.dir, 180 ) ) mob.Move(T,mob.dir) |
In response to Garthor
|
|
why wont this work:
client North() step(mob,mob.dir) South() var/turf/T = get_step(mob,turn(mob.dir, 180)) mob.Move(T,mob.dir) East() mob.dir = turn(mob.dir,-45) West() mob.dir = turn(mob.dir,45) |
In response to Koolguy900095
|
|
What's wrong with it?
|
In response to Garthor
|
|
test.dm:75: Inconsistent indentation.
test.dm:77: Inconsistent indentation. but its not inconistent its just like the one above |
In response to Koolguy900095
|
|
client
North() step(mob,mob.dir) South() var/turf/T = get_step(mob,turn(mob.dir, 180)) mob.Move(T,mob.dir) East() mob.dir = turn(mob.dir,-45) West() mob.dir = turn(mob.dir,45) I compiled that and it compiled fine. |
In response to Garthor
|
|
why does that code mess up slowing down the main mobs movement? for some reason this doesnt work now:
mob/Login() ..() speeding = 0 mob/var speeding = 0 rundelay = 4 normalrundelay = 3 client/Move() if(mob.speeding <= 0) mob.speeding = 1 ..() sleep(mob.rundelay) mob.speeding = 0 else return |
-Dagolar