
07-26-2001, 08:32 PM
|
|
Lord Helmut
|
 |
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
|
|
|
Alright, well how would I detect what x any y it is at now and then make it so it stays there and changes back to the idle.gif?? Here is what i tried:
if(created){
setimg zen1kuros1.gif; //the idle gif
}
if(playerchats&&strequals(#c,come)){
followplayer;
set following;
}
while (following) {
if(playerdir==0){
setimg zen1kuros6.gif;
}
if(playerdir==1){
setimg zen1kuros7.gif;
}
if(playerdir==2){
setimg zen1kuros5.gif;
}
if(playerdir==3){
setimg zen1kuros8.gif;
}
if (playersays(stop)) {
this.x=x;
this.y=y;
setimg zen1kuros1.gif,x,y;
}
sleep 0.05;
}
How can I change this so that It knows its X and Y and stays there which would cause it to change back to the idle image and to stop following player?? |
__________________
Warrior of Light
WWW.BABYLONSERVER.COM
|
|
|
|