![]() ![]() It depends on how the elements of the objects can be transformed. So if you return an empty rectangle, those methods won't work any more.īut maybe we can make your life easier on the whole class. The "getBounds" method is used for several things in Starling the default "hitTest" implementation relies on it (you found that out already), and also the "width" and "height" properties. ![]() Wow, Nate, it's awesome to see you're working on a Starling runtime!! You can download the projects with git or grab the whole thing as a zip with this link:Īgain, the vertices are changing, but the rendering isn't. Spine-starling and spine-starling-example If you'd like to take a look, you'll can import these 3 projects into Flash Builder: Why does this happen? Why does getBounds affect rendering? If I return the actual bounds, the rendering is squished. ![]() I see render is being called each frame and the vertices of the images I'm drawing change over time, but what is drawn doesn't actually change.Ģ) In my getBounds method, if I return a rectangle that is 0,0 0x0 it renders fine. Hi guys, I'm working on the official Starling runtime for Spine, which does 2D skeletal animation:ġ) It renders the spineboy animation as desired: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |