Proszę:
GML
if collision_point(mouse_x,mouse_y,parent,1,1)
{
item=collision_point(mouse_x,mouse_y,parent,1,1)
visible=true
for(j=0;j<=3;j+=1) {
for(i=0;i<=4;i+=1) {
if inventory[i,j]=0 {
inventory[i,j].visible=true
inventory[i,j]=item
item=0
inventory[i,j].visible=false
visible=false
exit;
}
}}}