-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flip Animation #23
Comments
It seems that it's a missing feature. A temporary fix exists within Spriter by creating a clone of your animation: |
Maybe it's a bug because I see that some other implementations have the same behavior. I guess there is an error in the scml reference. See http://brashmonkey.com/forum/index.php?/topic/3127-flipping-not-working/?hl=flip |
Shouldn't you be doing the flipping part with Flixel? .info.scaleX is only relevant when you first create the FlxSprites (AFAIK). On dev there are a number of options, I'm not too sure what you should use on 3.3.11 but I think there's a related FlxAtlas demo for that (just don't mistake the dev version to be the 3.3.11 compatible version, that won't work). |
Finally I made the change because I was able to find a fix in the Spriter forum :) |
What do you mean @sruloart ? is the dev branch of SpriterHaxeEngine not working with Flixel? Can somebody provide me a quick sample project using Flixel and SpriterHaxeEngine, I will be able to test myself on flixel that way :) |
Master should work with master ( What I've meant to say is that you don't have to use the engine to tell you something is flipped, you can just flip it using Flixel directly (both on master and on dev). Using the angle to flip the sprite? wouldn't it just spin it around? |
I'm just following the fix I saw on Spriter forum. I'm not sure of how to do that otherwise right now. |
Hello,
I'm trying to implement spriter with HaxeFlixel using SpriterHaxeEngine.
The problem I encountered is that I can't flip the spriter sprites.
I tried this:
if (flipX)
{
//spriterAnims.info.scaleX = -1;
spriterAnims.info.scaleY = -1;
}
else
{
//spriterAnims.info.scaleX = 1;
spriterAnims.info.scaleY = 1;
}
But id does crazy things. Is there any solution?
The text was updated successfully, but these errors were encountered: