Quote:
Originally posted by ownerofbabylon
LOL, good idea.
Well, here is what I have
if(created){
setimg idle.gif;
}
if(playerchats&&strequals(#c,come)){
followplayer;
}
if(playerdir==0){
setimg up.gif;
}
if(playerdir==1){
setimg left.gif;
}
if(playerdir==2){
setimg down.gif;
}
if(playerdir==3){
setimg right.gif;
}
For some reason it wont change the graphic when the player does. I asked Shadrock and he said to use functions because followplayer is bad so if anyone can get this working I would be happy. See ---->
But seriously does anyone know whats wrong??
|
LOL!!!!!!!!!!!!!
duh you need aloop like this:
if(created){
setimg idle.gif;
}
if(playerchats&&strequals(#c,come)){
followplayer;
set dogfollow;
}
while (dogfollow) {
if(playerdir==0){
setimg up.gif;
}
if(playerdir==1){
setimg left.gif;
}
if(playerdir==2){
setimg down.gif;
}
if(playerdir==3){
setimg right.gif;
}
if (playersays(stop)) {
unset dogfollow;
}
sleep 0.05;
}
ok!