couple of mistakes
mouse_range = 20; // increase this value !! to f.e. 9999
MOUSE_POS.X = POINTER.X; MOUSE_POS.Y = POINTER.Y;
temp.x = MOUSE_POS.x;
temp.y = MOUSE_POS.y;
temp.z = 1000;
vec_for_screen(temp,CAMERA); //not temp.z
in function mouse_test()
if(event_type == event_touch)
{
contact_text.string = str1;
} - this is useless ;P this should be set in some entity's action not in stand-alone function
I think that all you need is:
1.
- in main function
mouse_mode = 1;
mouse_range = 9999;
- in main's function loop
MOUSE_POS.X = POINTER.X; MOUSE_POS.Y = POINTER.Y;
2. in entity's action
my.enable_mouse = on; my.enable_touch = on; my.enable_realase = on;
my.event = my_event;
3. function my_event
{
if(event_type == event_touch){my.transparent = on; my.alpha = 50;}
if(event_type == event_realase){my.transparent = off; my.alpha = 100;}
}