So I figured I get a topic to see what everyone thought was the best way to control movement speed and also have the best animation with it.
The two main ways i have seen are modifying either client/Move() or mob/Move() and then either using a time delay or a variable to check for movement. Like below
client//or mob
Move()
if(world.time < mob.move_time)
return
mob.move_time = world.time + mob.move_delay
return ..()
Move()
if(mob.moving)
return
mob.moving=1
spawn(2) mob.moving=0
return..()
So Ive noticed a couple things with this. With client move if your delay is more than 2 or 3 your key gets registered as being released and you go in and out of movement state for your movement. As for using mob/Move you have delays with all movement and not just user input.
Are there any other ideas for movement and what is the best one in your opinion.
Sorry if this seems like a old topic but with the release of 4.0 (and not seeing much addressed in it since '06) I figured with all the interface features and macros and updates maybe there was something better out there that no one has shared with the rest of us.