How do I make my game use Mouse Over Names?

Started by Ytterbium, Sat 17/01/2004 03:52:02

Previous topic - Next topic

Ytterbium

I'd like to make my game display the name of a hotspot, object, or character when they move their mouse over it. The problem is, I have no idea how to do this. Can anyone help?

Currently in production: Septigon

LordHart

#1
Have a label on one of your GUI's and then add to it's text:
@OVERHOTSPOT@

Scummbuddy

But that would only give it where it was placed on whatever GUI it was on.  

I don't remember quite how to do this, and until someone else comes along and tells you about finding the cursors' position, and then making a label pop up with the @OVERHOTSPOT@ within it at -5(cursorX) and -5(cursorY), you can always check out one of these templates with a new game, just so you get a sense of how to work it.  Get the Monkey Island style one, and look at the map screen, and the specific GUI for it.

http://www.agsforums.com/yabb/index.php?board=2;action=display;threadid=6642;start=msg122548#msg122548
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

Ishmael

I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

SMF spam blocked by CleanTalk