Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: simulacra on Thu 14/10/2004 21:25:14

Title: Object animation [SOLVED]
Post by: simulacra on Thu 14/10/2004 21:25:14
SetObjectView(4,5);
ObjectOn(4);
AnimateObject (4, 0, 1, 1);


I want the object (4) to appear, then start animating a loop at a fast paced speed. But when I run this, the object appears but there is no animation. It's either stuck on the first frame or simply retains the object image I selected.

What to do?
Title: Re: Object animation
Post by: BorisZ on Thu 14/10/2004 21:29:46
Quote from: simulacra on Thu 14/10/2004 21:25:14
SetObjectView(4,5);
ObjectOn(4);
AnimateObject (4, 0, 1, 1);


I want the object (4) to appear, then start animating a loop at a fast paced speed. But when I run this, the object appears but there is no animation. It's either stuck on the first frame or simply retains the object image I selected.

What to do?

Where did you put this code? From what I heard, it looks like it is in repeadetly execute section, while it must be triggered with an event or so.
Title: Re: Object animation
Post by: simulacra on Fri 15/10/2004 00:07:41
Ah, it loops and resets with each loop. Silly mistake.