ID:157035
 
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?
You could use something like Lummox JR's DMIFontsPlus to generate the name graphics when the player logs in/creates a character with a name. Then store it with that player.

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.
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.