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

Clip rect scale #2643

Open
wants to merge 24 commits into
base: dev
Choose a base branch
from
Open

Clip rect scale #2643

wants to merge 24 commits into from

Conversation

Geokureli
Copy link
Member

Closes #2301
Example of old/new behavior: https://imgur.com/8CQBhDa

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

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