Oyed Posted May 9, 2015 Share Posted May 9, 2015 I've just migrated from using Pixi v2 to v3, and I'm having issues with scaling containers. Currently, I'm trying to do it by setting the "scale" of a PIXI.Container, which is being a bit strange. If I have a Sprite at X 100 Y 100 and I set "scale" to "2", it just disappears - is this the correct method of scaling? If so, how does it affect the co-ordinates of children in the container? Thanks! Quote Link to comment Share on other sites More sharing options...
clement_cvL Posted May 9, 2015 Share Posted May 9, 2015 Hey, If I correctly understood, you should : container.scale.x = container.scale.y = 2; edit :or use the setter scale.set(2) (but it's slower than setting manually the values of x and y) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.