Problems with centering camera on an object


#1

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


#2

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


#3

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


#4

here are all the events.



#5

here you are.
https://mega.nz/#F!ZJdBmITD!ZsUWue23MVhk_xGpKRwmLw


#6

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.