Conversation
there is still a twitch when moving at edges of zones, and room_to_gui -> room_to_view has twitch too, when smooth_draw is off
…on for zones to start disabled
it was only used in that one line
…_debug_set_draw_zones in favor of config macro
…ride the macro though
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

adds #34
adds #96
adds
activeinstance variable to constraint zones, to set wether they should be evaluated or not. Can set them to on off whilst in-gamefixes #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_STARTif 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_STARTif a followed object is within a constrain zone at start of room, should the camera be snapped to it?STANNCAM_CONFIG_ZONE_CONSTRAIN_ALWAYS_SMOOTHregardless of smooth draw, constrain zones will always be evaluated and transitioned between smoothlySTANNCAM_CONFIG_DRAW_CAMERA_ZONESyou 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_zoneswhich 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