Replacing one object with another [resolved]

Started by Sirpunchula, Sat 17/10/2009 05:06:47

Previous topic - Next topic

Sirpunchula

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?
Pardon my deadpan.

Scarab

Code: ags

  object[0].Visible=false;
  object[1].Visible=true;

Khris

In room scripts you can also use the scriptnames:

Code: ags
  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.

SMF spam blocked by CleanTalk