GiniWren Posted August 1, 2018 Share Posted August 1, 2018 Hello again! I'm having issues with tweening the dimensions of a mask on a group between two versions of Phaser. This was working in the previous version (2.10.6 at time of posting), but looks like it's stopped working in the most recent version (2.11.0). Here is the example of what I'm talking about: https://codepen.io/giniwren/pen/gjvqpd Note that the Phaser version in javascript settings on the pen is set to 2.11.0, but when changed to 2.10.6 the pen works. Looking through the release notes, it seems some work was done on masks between the two versions -- regression, or is there a new way to do this? Thanks for any help. Link to comment Share on other sites More sharing options...
samme Posted August 1, 2018 Share Posted August 1, 2018 It's because graphics used as masks always have dimensions 0 × 0. You can still draw on them at any size, though. For that case you could redraw the mask during the tween: https://codepen.io/samme/pen/xJWPVz GiniWren 1 Link to comment Share on other sites More sharing options...
GiniWren Posted August 1, 2018 Author Share Posted August 1, 2018 You just helped me fix so many problems with that solution. Thank you so much. Link to comment Share on other sites More sharing options...
samme Posted August 2, 2018 Share Posted August 2, 2018 You can also modify the graphics scale instead: https://codepen.io/samme/pen/ajGLrw?editors=0010 Link to comment Share on other sites More sharing options...
Recommended Posts