thanks for the answers guys,
i used vec_to_screen function but the panels did not display on the coordinate of the entity i specified.
below is my code:
vec_set (temp_pos, my.x); // copy the xyz coordinates of the entity to temp_pos
vec_to_screen (temp_pos, camera); // convert the 3D position to 2D screen coordinates
BombBrick2.pos_x = temp_pos.x; // and then set the position of the text
BombBrick2.pos_y = temp_pos.y; // on x and y
set(BombBrick2,SHOW);
please advice...