Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Thu 30/10/2003 17:11:20

Title: animating an object
Post by: on Thu 30/10/2003 17:11:20
heres a bit of my script:
 // script for room: Player enters screen (after fadein)
 
if (GetGlobalInt(4) == 1) {
// left candle is on
 SetObjectTransparency(0,100);
 SetObjectView(0,14);
 SetObjectTransparency(2,0);
 DisplaySpeech(EGO,"This is just a test.");
etc
etc

ego says "this is just a test" so it must be working. object 0 is a candle's flame, view 14 is it animated.
however, i dont see it animated, just the static sprite.

any ideas?
Title: Re:animating an object
Post by: Alynn on Thu 30/10/2003 18:09:20
AnimateObject
or
AnimateObjectEx

Should do it for you
Title: Re:animating an object
Post by: Ishmael on Thu 30/10/2003 19:53:30
You should post the entire script so we could say if there's something wrong... or did you write "etc" on the last two lines of it?
Title: Re:animating an object
Post by: on Thu 30/10/2003 20:39:51
laf, no, the etc just meant <and the script goes on>.
im a newbie but im not that bad ;)

anyway it works now, after i added AnimateObject. I thought SetObjectView was enough, I was wrong...

thanks