i was using if place_meeting(x,y,oParEnemy)
but it makes the collision on the edges of them and dont want them to collide so far away.
So i tried this. if point_in_rectangle(oParEnemy.x,oParEnemy.y,oParPlayer.x+4,oParPlayer.y+4,oParPlayer.x-4,oParPlayer.y-4)
but it doesnt seem to do anything. Im trying to have the collsion just be the center 8x8 pixels of the object. Could someone please help how I could do this?
but it makes the collision on the edges of them and dont want them to collide so far away.
So i tried this. if point_in_rectangle(oParEnemy.x,oParEnemy.y,oParPlayer.x+4,oParPlayer.y+4,oParPlayer.x-4,oParPlayer.y-4)
but it doesnt seem to do anything. Im trying to have the collsion just be the center 8x8 pixels of the object. Could someone please help how I could do this?