Player not centered - STLayerPanZoom and STCameraManager #2804
-
Hi guys. Can someone help me with a problem? I made a video to show. Im using STCameraManager and STLayerPanZoom to make the camera follow the player. It is following, but have something that make the camera no centralized, but more to left and the player more to right. Can someone help me? I made a video: My code:
|
Beta Was this translation helpful? Give feedback.
Answered by
paulocoutinhox
Sep 29, 2025
Replies: 1 comment
-
Solved. The problem is character anchor point, need be |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
paulocoutinhox
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solved. The problem is character anchor point, need be
setAnchorPoint({0.5f, 0.5f});
.