Thread: Pet?
View Single Post
  #13  
Old 07-25-2001, 11:19 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
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!
__________________
Do it with a DON!
Reply With Quote