Changing camera movement margin #349
|
Is it possible to change the value for how far the player must be from the center of the screen in order for the camera to move? I noticed that when moving right, the player appears much farther away from the center of the screen than the official sonic games. It's supposed to move to the left when the player is 16 pixels away from the center, and move right when the player is directly at the center. Screen.Recording.2026-04-12.163156.mp4 |
Answered by
QuartzTS
Apr 12, 2026
Replies: 1 comment 2 replies
|
Well, you can go to the Player.gd script, into the _ready function where you find the part that initializes the camera, and simply set the horizontal margin to 0 |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's the block of code in the _ready function: