• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

simple collision

D

daDude

Guest
Hi, I'm trying to use place_empty(x,y); to check to see if my player touch another instance like this

//this is the object that create event is attached to so I did like this

x +=3;
if(place_empty(object1.x, object1.y))
{
instance_destroy();
}

the only problem is my object got destroy before it even touch my object1 instancce
im new to this so please help. thank you
 
B

Becon

Guest
Looks like it's telling it: If the place is empty then it's OK to destroy.
Nothing about if you make contact or place_meeting with anything then destroy something.
 
Top