How to make a object appear by clicking a GUI button?

Started by shaungaryevans, Wed 29/10/2008 11:53:27

Previous topic - Next topic

shaungaryevans

I have built a question is my game but I have got a problem. I want it when you get it right a object appears in the same room. Can anybody explain to me how would i do this please?.

RickJ

You just have to turn the objects Visible property on or off.

Code: ags

*** Room Script ***

String Answer;
String Correct;

function SomeFunction() {

   if (Answer==Correct) {
      oMyObject.Visible = true;
   }
}

shaungaryevans

What do you mean by string. and do you put it in the Room or the GUI script please?

shaungaryevans


SMF spam blocked by CleanTalk