Using a text overlay

Started by Phemar, Sat 06/03/2004 04:34:48

Previous topic - Next topic

Phemar


Does anyone know how to do this:

I've made a text overlay and programmed it so that it goes on if your mouse is on a hotspot. Now I want it to dissappear when the mouse moves off.

Anyone?

Scorpiorus

#1
Each overlay has an ID number which can be used to control the overlay in question (ex. remove it). You get overlay ID this way:

//the top of the script
int overlayID;


overlayID = CreateTextOverlay(...);


if mouse isn't over a certain hotspot:

if (IsOverlayValid(overlayID)) { // check if it was created at all

 RemoveOverlay(overlayID); // remove it

}


~Cheers

SMF spam blocked by CleanTalk