SOLVED: objects visible problem..

Started by barefoot, Fri 11/02/2011 17:27:08

Previous topic - Next topic

barefoot

Hi

UPDATE: Put my code in room_RepExec and seems to work ok now..

----------------

I must be going Gaga.. I'm having problems with this when walking on region(is standing on) and objects become visible. The objects do become visible and are correctly named and activated by inventory on hotspot.

Code: ags

function region8_WalksOnto()
{
   if (okeyhole1.Visible && okeyhole2.Visible && okeyhole3.Visible && okeyhole4.Visible && okeyhole5.Visible && okeyhole6.Visible)
{

  object[6].Move(593, 373, 4, eBlock, eAnywhere);
  cSlocombe.Say("A false wall!!");
 cSlocombe.ChangeRoom(16);
}
}


or a better way to check?

I got it kind of working but needs tweeking! Char does not Walk...you  have to walk to region! would like him to eblock walk.

Code: ags

{
   if (okeyhole1.Visible && okeyhole2.Visible && okeyhole3.Visible && okeyhole4.Visible && okeyhole5.Visible && okeyhole6.Visible)
{

  object[6].Move(593, 373, 4, eBlock, eAnywhere);
  cSlocombe.Say("A false wall!!");
 cSlocombe.Walk(434, 363, eBlock);
   cSlocombe.ChangeRoom(16);

}
}



cheers

barefoot


I May Not Be Perfect but I Have A Big Heart ..

SMF spam blocked by CleanTalk