coolblue Posted September 18, 2015 Share Posted September 18, 2015 Hi, what is the purpose of the x and y members in the container object?position works fine for rendering... Quote Link to comment Share on other sites More sharing options...
xerver Posted September 18, 2015 Share Posted September 18, 2015 Because people wanted it, there are some edge cases when tweening and such where have x/y on the object itself can be useful. The position Point object is the authority, the x/y properties are just getters/setters around position (and are therefore slower). Quote Link to comment Share on other sites More sharing options...
coolblue Posted September 18, 2015 Author Share Posted September 18, 2015 Ah Ok, I see: its on the DisplayObject prototype. Thanks mate. 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.