Problems with centering camera on an object

The camera wont center properly on the selected object, it will try to follow it but still wont work the way it should com-video-to-gif

Is there a way you could share your project files? The action works correctly for me when I test it out.

Can you show your other events (events/conditions before or after camera centering etc) please?

here are all the events.
image

here you are.

So the problem is in your layer system. If you spawn the player on the base layer, the camera centres on it fine.

But when you spawn the player on a different layer and try to center the base layer camera on it, that’s how it ends up weird.

I would consider putting everything on the same layer but use z-ordering in order to have the map tiles be underneath the players. Then everything should work smoother.

1 Like