xdiepx Posted May 19, 2015 Share Posted May 19, 2015 i was testing out a sprite image and i notice that there is sprite.x and sprite.position.x. I am wondering what is the difference? Quote Link to comment Share on other sites More sharing options...
clement_cvL Posted May 19, 2015 Share Posted May 19, 2015 'sprite.x' calls the setter method which will set the 'sprite.position.x' ! In term of performance it's faster to set directly the 'sprite.position.x' Quote Link to comment Share on other sites More sharing options...
xerver Posted May 20, 2015 Share Posted May 20, 2015 https://github.com/GoodBoyDigital/pixi.js/blob/master/src/core/display/DisplayObject.js#L161-L193 Quote Link to comment Share on other sites More sharing options...
xdiepx Posted May 20, 2015 Author Share Posted May 20, 2015 Thanks 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.