thanks for the tip, Superku. I also added mouse_
pos.x = mouse_cursor.x; // allow the mouse pointer to move
mouse_pos.y = mouse_cursor.y; as you may see in the corrected code bellow:

So the code bellow is working...



#include <acknex.h>
#include <default.c>


STRING* aloha_str = "You clicked on earth!";

TEXT* greetings_txt =
{
pos_x = 300;
pos_y = 250;

string (aloha_str);
flags = SHOW;
}

function click_event()
{
if(event_type == EVENT_CLICK)
{
set(greetings_txt, SHOW);
}
}

action planet_act()
{

my.emask |= ENABLE_CLICK;
// my.enable_click = on;
my.event = click_event;
}


function main()
{
level_load("small.hmp");
ent_create("earth.mdl", vector(80, 80, 20), planet_act);
video_mode = 9;

mouse_mode = 2;

reset(greetings_txt, SHOW);
while(1)
{
camera.y -= joy_force.x;
camera.x += joy_force.y;
if (joy_4)camera.pan+=0.3;
if (joy_5)camera.pan-=0.3;
if (joy_1) camera.z += 1;
if (joy_2) camera.z -= 1;

if (joy_1 && joy_2)
{
camera.x = 0;
camera.y = 0;
camera.z = 0;
}

mouse_pos.x = mouse_cursor.x; // allow the mouse pointer to move
mouse_pos.y = mouse_cursor.y;


wait(1);
}


}