Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Sun 07/11/2004 17:24:02

Title: Basic Object Animation
Post by: on Sun 07/11/2004 17:24:02
I am trying to create my first ever object animation. I have created a ROOM SCRIPT that looks like this:

// room script file
SetObjectView(1,3);
AnimateObject(1,0,3,1);

It doesn't seem to recognise this as a valid script. Is this the place where the code belongs ?
PLEASE HELP !

.:Thankyou:.
Title: Re: Basic Object Animation
Post by: Ashen on Sun 07/11/2004 17:33:38
When do you want the animation to start? I'm guessing as soon as the player enters the room?

At the momemt, it looks like you've got the code just loose in the room script, which won't do anything. Move it to a run script command in the Player enters screen (after fade in) interaction. (Access the interactions with the red 'i' button, next to the '{}' script button on the 'Room Settings' window.)
Title: Re: Basic Object Animation
Post by: on Sun 07/11/2004 17:39:04
works perfectly ! Thanks