ID:179430
 
I have a problem. Is it possible to make a mob move west until it reaches a certain set of coordinates? For example, I have a mob that moves to a certain spot, then I want it to walk west. I can get it into the first spot,and I can get it to go west, but can't get it to stop. I thought the following code would work, but it doesn't.
do
walk(src,WEST)
while(src.x != 8)

All this does is lock up my dream seeker. If you have any suggestions, I'd appreciate it. Thank you in advance!
You need to put a sleep() inside the loop to keep it from locking up.
In response to Cinnom
Cinnom wrote:
You need to put a sleep() inside the loop to keep it from locking up.

Also, instead of using walk(), use step(). You have much more control.