Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot rotate camera all the way in both directions #125

Open
darthvader45 opened this issue Jul 19, 2020 · 6 comments
Open

Cannot rotate camera all the way in both directions #125

darthvader45 opened this issue Jul 19, 2020 · 6 comments

Comments

@darthvader45
Copy link

darthvader45 commented Jul 19, 2020

In one direction, I can rotate the camera 360 degrees, yet in the other way it only goes 90 degrees. Which makes the game virtually unplayable, as one wrong turn means I get cronched by 173 early in the game (173 shouldn't be a problem for a veteran like me).

Using Windows 10 and SCP CB version 1.3.11

@theOneTrueFunniBoi
Copy link

I get this bug too, but only in full screen for some reason. Try in windowed mode or borderless windowed mode.

@darthvader45
Copy link
Author

Will do. No idea why this happens in full screen. If it ends up happening in windowed/borderless windowed modes, I might just leave it be until it's fixed.

@theOneTrueFunniBoi
Copy link

theOneTrueFunniBoi commented Aug 27, 2023

Here's a workaround I made. On Line 4498 of main.bb, you can find this code:

If (MouseX() > mouse_right_limit) Or (MouseX() < mouse_left_limit) Or (MouseY() > mouse_bottom_limit) Or (MouseY() < mouse_top_limit)
MoveMouse viewport_center_x, viewport_center_y
EndIf

Comment out or delete the If statement so you only have the movemouse command:

MoveMouse viewport_center_x, viewport_center_y

This fixes the bug but im not sure if it causes more issues or not. The comment on the line above references a bug relating to jittering that the if statement fixes, but i haven't done enough tests to see if this fixes the bug or not.

Edit: Making Code Elements more apparent, and adjusted wording in title of comment.

@VaneBrain
Copy link
Contributor

The whole thing happens because of Windows GUI scale. Because of it the game can't detect the resolution correctly.

The fix is either setting a tick for DPI override to be controlled by the application (this can be done in exe's properties in Compatibility tab) or by setting general Windows GUI scale to 100%

@darthvader45
Copy link
Author

Sounds more like a workaround rather than a fix, but you do you.

@theOneTrueFunniBoi
Copy link

Yeah, but for now it works and that's what matters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants