ID:157035
Jun 7 2010, 10:31 pm
|
|
Hello, I am trying to create a system that allows me to see a player's name under them(On my HUD) when I put my mouse over them, and have the name disappear when I move the mouse away. Without causing lag issues. I have been trying many different ways, but cannot seem to get it. Can anyone please point me in the right direction or give me a sample code of something like it?
|
Albro1 wrote:
Hello, I am trying to create a system that allows me to see a player's name under them(On my HUD) when I put my mouse over them, and have the name disappear when I move the mouse away. Without causing lag issues. I have been trying many different ways, but cannot seem to get it. Can anyone please point me in the right direction or give me a sample code of something like it? I have a very basic demonstration of this here: http://www.byond.com/developer/Maximus_Alex2003/ Max_MouseName I put it as a lib, but it's more of a demo. It's somewhat commented as well and it's a very dry and dull way to accomplish it. |
Then you could use the MouseEntered/MouseExited procs to know when to show & hide the name. Probably using client.images so it's only visible to the player doing the hovering.