How to remove graphic overlay?

Started by CB.., Sat 01/11/2003 16:54:55

Previous topic - Next topic

CB..

i seem to be struggling a little with this one..
the graphic overlay appears as prescibed..but im getting confused with the correct way to remove it

the manual list the text overlay removal script which names the overlay in order to remove it..but the graphical overaly hasn't got a similar name and im a bit lost as to the way to remove it..

im using the overlay as the roof of a house,
as i walk into the house (it's a top down view)
i need to remove the overlay revealing the interior of the house (which is drawn on the background but hidden by the overlay)
i could use the move overlay script but might be neater to remove it entirely.


RickJ

When you create an overlay an id number is returned.  You use the id numer o remove the overlay.  For example ...

Room Script

int overlay_id;         // Put this at the begining of the room script

function room_x() {
  // Any event handler (i.e. interactions)
 
  // Create an overlay
  overlay_id = CreateGraphicOverlay(...);

  // Do something

  // Remove the overlay
  RemoveOverlay(overlay_id);
}

CB..


SMF spam blocked by CleanTalk