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!
ID:179430
Dec 28 2001, 6:53 pm
|
|
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 All this does is lock up my dream seeker. If you have any suggestions, I'd appreciate it. Thank you in advance! |
Dec 28 2001, 8:07 pm
|
|
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. |