Hi everybody!
How can I create text overlays that are displayed as long as the mouse moves over a hotspot and not only for a defined time by "Wait"?
I only know:
Overlay* myOverlay = Overlay.CreateTextual(50,80,120,2,15,"This is a text overlay");
Wait(40);
myOverlay.Remove();
Would an "if"-request (If mouse over hotspot then create overlay) do better?
Thanks in advance!!
Alice
Actually I wouldn't use overlays for this at all.
Using RawPrint, RawRestoreScreen and RawSaveScreen will make it way easier. Look those functions up in the manual and you'll feel enlightened. ;)
Try this module (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=23328).
If you script it yourself, easiest way is to use a GUI label, using the raw function is not recommended as it involves saving/restore the background, and there's a limitation that the text will be drawn onto the background, so it'll be below characters and objects in genereal (worst case is, it's on a walkbehind area, like for example a lamp post, and the character is behind it, whihc can yield very funny results).
But yeah, try my module.