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

stanncam Does Not Accurately Follow Instance with Zoom Magnification #78

Open
bfrymire opened this issue May 11, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@bfrymire
Copy link
Collaborator

bfrymire commented May 11, 2024

The X and Y positions of the stanncam do not fully settle on at the follow instance's X and Y positions when using the zoom magnification. The camera position ends up being 2 pixels off from the expected position.

Reproductions steps:

stanncam_init(1920, 1080);
var _cam = new stanncam();
var _player = instance_create_depth(room_width * 0.5, room_height * 0.5, 0, obj_player);
_cam.bounds_w = 0;
_cam.bounds_h = 0;
_cam.follow = _player;
_cam.room_constrain = false;
_cam.zoom(0.25);
repeat (1000) {
    _cam.__step();
}
var __ = {
    camera_x: _cam.x,
    camera_y: _cam.y,
    player_x: _player.x,
    player_y: _player.y,
    assert: (_cam.x == _player.x && _cam.y == _player.y)
};
show_message(__);
@bfrymire bfrymire added the bug Something isn't working label May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant