Animating sheep character warning

Started by Mr_Threepwood, Fri 01/09/2006 20:47:55

Previous topic - Next topic

Mr_Threepwood

Alright here's what I have, one character is the main character and when he uses a certain object an effect comes on to him that makes it look like something is right around him and behind him.Ã,  I have this working by using another character for the effect and making it follow the main character exactly.

The problem is that the sheep character is animating when it is put on the main character.Ã,  That works but when you deactivate and reactivate the item is where there is a problem.Ã,  It works but you get a warning from the AGS editor once you close the game saying "Sheep character is animating while follow is called and may never start following the character".Ã,  Well it does follow the character but it would be nice to get rid of this warning.Ã,  I thought it would make sense to stop the characters animation when the following is deactivated, but I can't figure out how.Ã,  There is no character.stopAnimating() function or anything, and I tried unlockView and setting the view to a locked frame but it still gives me this warning.

Any ideas?


Edit-  Nevermind I figured it out.

Turns out you have to unlock the view BEFORE you set it to followCharacter(null).
I am a mighty pirate

SMF spam blocked by CleanTalk