Here is my "shooting code" I am only using the mouse as a chrosshair to shoot.

Code:
 //muse pekeren blir satt her slik at den får et sikte//
//My chrosshair mouse....gun.... //
function set_mouse(_mode)
{
mouse_mode = _mode;
mouse_map = crosshair_map;
mouse_range = 100000;//dette har jeg lagt til//original 5000
mouse_spot.x = bmap_width(crosshair_map) / 2;
mouse_spot.y = bmap_height(crosshair_map) / 2;

while(mouse_mode)
{
mouse_pos.x = pointer.x;
mouse_pos.y = pointer.y;
mouse_pos.x = clamp(mouse_pos.x,0,screen_size.x - bmap_width(crosshair_map));
wait(1);
}
}



and I also tried this "easy" code attached to the bird inside the house : Code:
 //*****************************************
function skyt_object_10()
{
if(event_type == event_click)

{

my.flag1 = on;

bird_hit_10();
hits_of_the_player += hitvar1;
wait(1);

ent_remove(me);
}
}

action hit_object_10
{
my.enable_click = on;
my.event = skyt_object_10;
while(my.flag1 == off)


{

wait(1);
}

}
//*******************************



Dont work whit this one either.
I have attached this code to the door. And it makes the door dissapeares.
So there is a Hole in the wall also the windows are holes. But it seems like the player arent able to "reach" the bird inside. But if I set it outside the house no problem.......


Programmer in training... Own GameStudio Commerical 6.50