CinkoNaap Posted January 29, 2014 Share Posted January 29, 2014 Is there a way to get Graphic's object width and height? It seems that the DisplayObjectContainer functions are commented out, Graphics object do not implement them, and getLocalBounds() function is not working properly. Am I missing something? Quote Link to comment Share on other sites More sharing options...
lukaszwojciak Posted February 9, 2014 Share Posted February 9, 2014 I always set the width & height properties by hand when creating an object. If you create more complex shapes then you should probably implement a proper calculation mechanism that will go in par with your collision detection engine. Quote Link to comment Share on other sites More sharing options...
xerver Posted February 9, 2014 Share Posted February 9, 2014 If you are using the latest development version (from the dev branch) you can use `.getBounds()` 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.