I tried modifying the mob.Move proc as shown below.
Move(NewLoc,Dir=0)
sleep(move_speed) // slow player movement
..(NewLoc,Dir)
return
This seems to work as far as giving me control of the move speed even if arrow keys are used. However, if I hit right arrow, left arrow, right arrow, left arrow, etc. really fast, I appear to hop around the screen. Also, I have AI mobs that use a step_rand() in some cases, and the hopping effect is much worse for them.
Is there a better way to do this that wont allow the hopping effect?
ID:178948
Mar 14 2002, 6:40 pm
|
|
Mar 14 2002, 6:50 pm
|
|
Check in the FAQ there's a really good way of doing it there.
|
In response to Nadrew
|
|
Nadrew wrote:
Check in the FAQ there's a really good way of doing it there. ah, so simple! the hopping bug is gone. Thanks! |