billymonks Posted April 19, 2015 Report Share Posted April 19, 2015 Hello all, I apologize if I am posting in the wrong place. I am working on a game using the Trixt0r XNA implementation of Spriter to display objects. The other night I discovered that bones & sprites which had negative X_scale values were failing to render in game. --> Are there any known solutions or workarounds? Any help with this issue would be greatly appreciated. Edit: As a workaround I replaced the bones and sprites that had negative Xscale. Spriter is an excellent tool and I am very thankful for its existence, even in its early state, and Trixt0r for his open source implementations which have saved me months of work. :mrgreen: JohnnyType, sportrmhcnh, Arrgincey and 4 others 7 Quote Link to comment Share on other sites More sharing options...
apamuc Posted August 26, 2015 Report Share Posted August 26, 2015 from what i see about your axis in spriter, if you are scaling for Y, than all object will be mirrored outside of your screen (the one on your screenshot). something like that: Y /\ | --- | O | o | ------------------------> x | | o | O Quote Link to comment Share on other sites More sharing options...
lucid Posted September 15, 2015 Report Share Posted September 15, 2015 @billymonks, I know this reply is a bit late, but if you still need it. see if this helps: // before adding the parent.angle to child.angleif(parentInfo.scaleX*parentInfo.scaleY<0) // if one, but not both are negative{ child.angle*=-1; // or child.angle=360-child.angle // (if you want to keep it within the 0 - 360 range)} Quote Link to comment Share on other sites More sharing options...
billymonks Posted September 24, 2015 Author Report Share Posted September 24, 2015 Thanks a lot, I'll give this a try tonight! 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.