I've been stuck on this problem for weeks now. I'm trying to find a way for the mouse cursor to touch something in 3D space which causes text to pop up to let the user know that the mouse is touching an object. I am still having problems trying to get it work. This is what I have done:

Code:
	string str1 = "The mouse is touching the tree. \n Testing the text now. \n testing the line breaks also! loading.....";


mouse_test();
mouse_event();

function mouse_event()
{

if(event_type == event_touch)
{
my.transparent = on;
my.alpha = 50;
contact_text.string = str1;
}
if(event_type == event_release)
{
my.transparent = off;
}


}


function mouse_test()
{

while(1)
{

temp.x = MOUSE_POS.x;
temp.y = MOUSE_POS.y;
temp.z = 9999.99;
vec_for_screen(temp, camera);
wait(1);
}
}




thanks in advance...

Last edited by Knuckles; 06/08/07 04:36.