ObjectOn in different room

Started by AnInhumer, Mon 28/02/2005 20:30:04

Previous topic - Next topic

AnInhumer

How can you turn on an object in a different room.
I think this is probably a thingy.thingy that I don't understand, tips on these would be helpful

strazer

#1
You can't do it directly by default.

What you can do is set a GlobalInt to 1, and in the room's "Player enters screen (before fadein)" interaction, check if the GlobalInt is 1, then turn the object on.

Code: ags

  // script for interaction that should turn the object on
  SetGlobalInt(28, 1);


Code: ags

  // script for room: Player enters screen (before fadein)

  if (GetGlobalInt(28) == 1) ObjectOn(THEOBJECTNUMBER);


There's also the OtherRoom script module or plugin.

Is this in the BFAQ?

AnInhumer


SMF spam blocked by CleanTalk