It seems to be impossible to check collisions between images belonging to the same layer. Does somebody knows a solution?
For details:
I want to use the CollideImage() function, and I use for that the image layers. For example: background=0, monsters=1, pickups=2, player=3 (the bitmasks for these would be 1,2,4,8 respectively).
So first I do a call to collideImage, writing to the specific layers:
Then I test if my image collided with another image.
But if I want to check if a player collided with another player, then I will test this with
And this will always return true since imagePlayer belongs to the layer of players, so the image is always colliding with itself!! Is it not possible to check collision for images in the same layer??
For details:
I want to use the CollideImage() function, and I use for that the image layers. For example: background=0, monsters=1, pickups=2, player=3 (the bitmasks for these would be 1,2,4,8 respectively).
So first I do a call to collideImage, writing to the specific layers:
CollideImage(image1,x1,y1,0,0,layerPlayer)
Then I test if my image collided with another image.
If CollideImage(image2,x2,y2,0,layerPlayer,0)
But if I want to check if a player collided with another player, then I will test this with
If CollideImage(imagePlayer,x,y,0,layerPlayer,0)
And this will always return true since imagePlayer belongs to the layer of players, so the image is always colliding with itself!! Is it not possible to check collision for images in the same layer??