Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Candle on Sat 29/01/2005 21:53:44

Title: AnimateObject(0,2,0,0);
Post by: Candle on Sat 29/01/2005 21:53:44
Is there AnimateObjectstop(0,2,0,0); ?
Title: Re: AnimateObject(0,2,0,0);
Post by: Etcher Squared Games on Sat 29/01/2005 22:29:54
what exactly are you wanting to accomplish?

There is a StopObjectMoving, but that appears to stop MOVING an object not ANIMATING an object.  If that's what you mean you could try it.
Title: Re: AnimateObject(0,2,0,0);
Post by: Candle on Sat 29/01/2005 22:31:52
not ANIMATING what does that one look like ?
Title: Re: AnimateObject(0,2,0,0);
Post by: Goot on Sat 29/01/2005 22:52:50
So you want to stop an object animating? I think you would just use AnimateObject(0,2,0,0); If the framerate is 0, the object will finish animating instantly. Also, I think SetObjectFrame would work.
Title: Re: AnimateObject(0,2,0,0);
Post by: Scorpiorus on Sun 30/01/2005 14:57:55
Also, you can use the SetObjectGraphic(object_number, sprite_number) function to stop its animating.

It's actually not a bad idea to have some sort of a StopAnimating function.