Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Sirpunchula on Sat 17/10/2009 05:06:47

Title: Replacing one object with another [resolved]
Post by: Sirpunchula on Sat 17/10/2009 05:06:47
I'm attempting to replace an object with another object after it being interacted with by my character, but i can't seem to find the topic on the tutorial. Could someone either tell me how to script this or point out somewhere i can find the information?
Title: Re: Replacing one object with another
Post by: Scarab on Sat 17/10/2009 07:12:08

  object[0].Visible=false;
  object[1].Visible=true;
Title: Re: Replacing one object with another [resolved]
Post by: Khris on Tue 20/10/2009 14:50:32
In room scripts you can also use the scriptnames:

  oChair.Visible = false;
  oBrokenChair.Visible = true;
  oChairLeg.Visible = true;


An alternative way is to change the object's graphic, then check it when reacting to an interaction.