Mousey Tooltip

I am a 3d artist but am interested in learning more about making simple games on my own and could use a little help here…Thanks for your patience. I have tried piecing together some info from other sources to create a loadlevel button that has a tooltip that occurs by the mouse cursor, for some reason however instead of appearing by the cursor this tooltip shows up by the bottom of the screen, can anyone help me rectify this and maybe explain why it is doing this, I do not know a whole lot about scripting but am learning…Thank you in advance…and my apologies if this has been posted before I did quite a bit of searching but could not find what i was lookng for…here is the code I am using…

var mousePos: Vector3 = Input.mousePosition;

function OnGUI () {

if (GUI.Button (Rect (10, 10, 100, 50), GUIContent(“New Game”, “Start a New Game”)))
{

Application.LoadLevel (1);

}
GUI.Label (Rect (mousePos.x, mousePos.y - 100, 100, 20), GUI.tooltip);
}

:sunglasses:

Well I have read through many posts and can not seem to find what I am looking for…I will look for help elsewhere…

Unityanswer is much more helpful, I have posted questions a few times here but since I am a noob do not seem to ever get replies…I guess thats cause too many here are way better than this lowly artist…sounds trollish I am sure but its merely frustration…

Bumping your own thread twice in 2 hours because you didn’t get a reply is definitely trollish. We don’t sit around waiting for people to bring us problems so we can help.

To answer your question though, GUI coordinates and Input.mousePosition seem to have opposite Y directions. Try using:

-mousePos.y + Screen.height + 100

When in doubt trying to troubleshoot anything script related try to remove as much as possible from your code so you can directly observe what’s happening. If you’d just had a label following mousePosition you’d probably have figured all this out in a matter of seconds by yourself.