(Formerly known as MergeObject, which is now obsolete)
Object.MergeIntoBackground()
Merges the object into the background scene for this room.
By doing this, the object becomes part of the background and so does not
slow the game down. This is a 1-way operation - once the object has
been merged, it cannot be changed back and the state of the room is
permanently altered. Therefore you should only use this function if a game
event has occurred that means the room is permanently changed.
NOTE: after calling this function, you cannot use the object any more and
it is permanently removed from the game.
NOTE: objects can only be merged if the object graphic was imported at
the same colour depth as the background graphic.
Example:
object[3].MergeIntoBackground();
will merge the object's image into the room's background image and make the object unusable.
|