Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
setAnchorPoint() for Sprites, Shapes and all of your classes! — Gideros Forum

setAnchorPoint() for Sprites, Shapes and all of your classes!

jack0088jack0088 Member
edited August 2012 in Code snippets
You all know the anchor point functionality for Bitmaps, and FINALLY it comes to Sprite, Shape .. AND all your own classes!
As far as I've tested it, there are no bugs, but hey, nobody's perfect. Please comment if you find something.
I've packed a demo project. Feel free to try.

Btw. I've added a class called Primitives, which makes creating Shapes absurdly easy. Head over to my website for documentation.
And take a look at Gideros API for anchor point usage.

PS: A warm thanks @ar2rsawseen and his wife :D!
zip
zip
anchorPoint.zip
193K
Owltwins. Smart design and creative code.
»Gideros Illustrator« - [svg|xml] scene designer using Adobe Illustrator®™ Within one line of code!
+1 -1 (+3 / -0 )Share on Facebook
Sign In or Register to comment.