Hi,

I am having a problem creating a box at the desired location. It creates the box in location quite far from the actual mouse cursor. This is the function.

function create_bounding_box()
{
if(mouse_left_clicked == 0 && mouse_left == 1) mouse_left_clicked = 1;
if(mouse_left_clicked == 1)
{
ent_create(box_str,mouse_cursor,box_pointer);
mouse_left_clicked = 2;
}
if(mouse_left_clicked == 2 && mouse_left == 0) mouse_left_clicked = 0;
}