Hmmm, wyszło mi coś takiego:
GML
{
//================================================================================
===========================
if (mouse_check_button_pressed(mb_left))
{
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++
if ( global.inst )
{
if ( not collision_point(mouse_x,mouse_y,global.inst,1,1) and global.inst.image_blend == c_green )
{
global.inst.x=mouse_x-16;
global.inst.y=mouse_y-32;
global.inst.image_blend=c_white;
global.inst=0;
}
if ( global.inst.image_blend == c_green and collision_point(mouse_x,mouse_y,global.inst,1,1) )
{
global.inst.image_blend=c_white;
global.inst=0;
}
}
else
if ( collision_point(mouse_x,mouse_y,instance_position(mouse_x,mouse_y,object0),1,1) )
{
if ( instance_position(mouse_x,mouse_y,object0).image_blend == c_white )
{
global.inst=instance_position(mouse_x,mouse_y,object0);
global.inst.image_blend=c_green;
}
}
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++
}
//================================================================================
===========================
}
Może być?