Skip to content

Clip rect scale #2643

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

Closed
wants to merge 24 commits into from
Closed

Clip rect scale #2643

wants to merge 24 commits into from

Conversation

Geokureli
Copy link
Member

@Geokureli Geokureli commented Oct 1, 2022

Closes #2301
Example of old/new behavior:

rects.mp4

can toggle sprites to use the old behavior with legacyClipRectMode

Comment on lines +279 to +284
/**
* If true, clipRect will behave as it did in flixel 4 and earlier.
* Where the clipRect will scale up proportionally with the sprite.
* @since 5.0.0
*/
public var clipRectIgnoreScale(default, set):Bool = false;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO:

  • keep legacy behavior, make this an opt-in feature
  • come up with a better name maybe scaleClipRect or something

@Geokureli
Copy link
Member Author

Closing for #3419

@Geokureli Geokureli closed this Apr 17, 2025
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

Successfully merging this pull request may close these issues.

Oddities when using clipRect + scale.
1 participant