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

container getBounds getTransformMatrix is not a function #3624

Closed
poasher opened this issue Apr 26, 2018 · 1 comment
Closed

container getBounds getTransformMatrix is not a function #3624

poasher opened this issue Apr 26, 2018 · 1 comment

Comments

@poasher
Copy link

poasher commented Apr 26, 2018

The following code causes an error :

         let cont0 = this.add.container(0, 0);
         let cont1 = this.add.container(0, 0);
         cont0.add(cont1);
         let backMask = new  Phaser.GameObjects.Graphics(this, null);
         backMask.fillStyle(0x000000);
         backMask.fillRect(0, 0, 500, 500);
         backMask.generateTexture('backMask1');
         let image = this.add.image(0 , 0 , 'backMask1');
         cont1.add(image);
         cont1.getBounds();

https://github.com/photonstorm/phaser/blob/ef136f684d4ff59547c50373047e98459ef91bbf/src/gameobjects/container/Container.js#L428

TypeError: this.parentContainer.getTransformMatrix is not a function
at Container.getBoundsTransformMatrix

@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