Skip to content

2.4.2#97

Open
stann-co wants to merge 19 commits intomasterfrom
2.4.2
Open

2.4.2#97
stann-co wants to merge 19 commits intomasterfrom
2.4.2

Conversation

@stann-co
Copy link
Copy Markdown
Owner

@stann-co stann-co commented Mar 26, 2026

adds #34
adds #96
adds active instance variable to constraint zones, to set wether they should be evaluated or not. Can set them to on off whilst in-game

fixes #92
fixes #93
fixes #91
fixes #99
fixes #98

fixes rounding error when zooming in/out

there's a stanncam_config file added with macros
STANNCAM_CONFIG_SNAP_TO_FOLLOW_ON_ROOM_START if a followed object is active at the start of a room, should the camera be snapped to it?

STANNCAM_CONFIG_SNAP_TO_ZONE_ON_ROOM_START if a followed object is within a constrain zone at start of room, should the camera be snapped to it?

STANNCAM_CONFIG_ZONE_CONSTRAIN_ALWAYS_SMOOTH regardless of smooth draw, constrain zones will always be evaluated and transitioned between smoothly

STANNCAM_CONFIG_DRAW_CAMERA_ZONES you can set this to true/false or any global variable you like, to easily show zones when debug drawing. By default it is using __obj_stanncam_manager.draw_zones
which can still be set using stanncam_debug_set_draw_zones()

important change, .room_to_gui doesn't automatically snap to nearest integer anymore, sometimes you might not want that, if you do you can simply write it like .room_to_gui_x(round(my_value)) instead

@stann-co stann-co requested a review from bfrymire March 26, 2026 20:19
@stann-co
Copy link
Copy Markdown
Owner Author

with smooth_draw off there is still an odd shaking when transitioning between some zones, even if their bbox top and bottom are identical. 2 long U-zones connected, makes it extra noticeable
Runner_eAJIsVJOO1

@stann-co stann-co marked this pull request as draft March 27, 2026 11:38
@stann-co stann-co marked this pull request as ready for review March 27, 2026 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment