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

createBitmapMask() is inconsistent when used on Shapes #5976

Closed
samme opened this issue Jan 20, 2022 · 1 comment
Closed

createBitmapMask() is inconsistent when used on Shapes #5976

samme opened this issue Jan 20, 2022 · 1 comment

Comments

@samme
Copy link
Contributor

samme commented Jan 20, 2022

Version

  • Phaser Version: 3.55.2

Description

When called on a Shape game object, createBitmapMask(shape) makes a working mask but createBitmapMask() doesn't.

Example Test Code

Given a Shape:

const rect = this.add.rectangle(0, 0, 200, 150, 0xffff00);

This makes a working mask:

const mask = rect.createBitmapMask(rect);

This doesn't:

const mask = rect.createBitmapMask();

Both calls succeed, but only the first mask has a visual effect.

@photonstorm
Copy link
Collaborator

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

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

No branches or pull requests

2 participants