gendarme Posted December 16, 2015 Share Posted December 16, 2015 I changed the scale.x and scale.y values on my stage and then rendered it, but nothing happened. I tried to instead change the scale of a container inside my stage and then render the stage, but it didn't work either. It seems like there is something tricky about scale that I am not aware of. I am using scale to simulate a zoom in and zoom out. The scale.x gets its new value, but the picture doesn't change at all. I don't really understand the problem. I need help. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted December 16, 2015 Share Posted December 16, 2015 It has to work. Show me what you've got! (code) Quote Link to comment Share on other sites More sharing options...
gendarme Posted December 16, 2015 Author Share Posted December 16, 2015 I just realised the problem. I had written x = container.scale.x; for shorter code and then I changed x, but the container.scale.x doesn't change, obviously. Silly mistake. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted December 16, 2015 Share Posted December 16, 2015 write scale = container.scale and use scale.x = ... 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.