I think it won't slow down your game too much unless there
are thousand of entities infront of the camera.

mouse_ent detect the mesh body not the bounding box, I think
the mouse_range is the problem.

Quote:


Why is the mouse not appearing when I go to full screen mode





And here is the answer found in the mighty manual->mouse_pointer:

Quote:


In fullscreen mode the system cursors are not visible; only a mouse_map can be
used for the fullscreen cursor.





BTW, why not write your previous code like this :

Code:

if (mouse_left && mouse_ent == my)
{
my.material = Selected_mat;
} else {
my.material = Normal_mat;
}