Camera On Player.

I’m making a native platform game. When I center camera on player, enemy objects pass through platform objects. How can I get camera to follow player to next screen? And not get that bug?

I can’t see how the camera movement could affect the solidity of platforms, so I think the problem must be elsewhere in your events.

Maybe the enemies and the platforms are in different layers?

Actually, different layers could be the answer. I got caught out by that because although the objects on the second layer stayed visible on the screen when the main camera moved, they weren’t actually there to be collided with. I presume collisions are detected by positional overlap, rather than sprite overlap.