P
paulog
Guest
Hello! I'm making a simple game in GM1.4 and I want to check if an object is colliding with any other object but not with itself.
This is the code I'm using:
Tha variable global.free is always 1 even if the only object present is this one, so I'm assuming it's colliding with itself, but really I don't know.
I'd be very grateful if someone could help me out in this.
Thanks in advance
This is the code I'm using:
GML:
if position_meeting(x,y,all)
{
global.free = 1
}
if !position_meeting(x,y,all)
{
global.free = 0
}
I'd be very grateful if someone could help me out in this.
Thanks in advance