I have 3 collision mask layers: ground, enemy and player.
The enemy should collide both with the ground and the player.
I also want the enemy to move along a platform and turn around once it detects the edge of the platform. For this i'm using test_move().
The problem is that the enemy cant distinguish between the ground and the player. A player can fool the enemy into thinking they are a part of the platform. And so, my enemies platform edge detection sometimes fails.
How can i distinguish between collision layers or objects or anything? test_move seems to be object-blind.