Giter Club home page Giter Club logo

Comments (7)

loudoweb avatar loudoweb commented on June 12, 2024

It seems that it's a missing feature.
I also need this feature so I will probably write it, but not before October because I don't have the time right now.

A temporary fix exists within Spriter by creating a clone of your animation:
-select your animation in the animation pannel
-click on the ... button
-create a clone with scaleX -1 or scaleY -1
then you just have to switch between the all set of animations in your engine.

from spriterhaxeengine.

loudoweb avatar loudoweb commented on June 12, 2024

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

from spriterhaxeengine.

sruloart avatar sruloart commented on June 12, 2024

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).

from spriterhaxeengine.

loudoweb avatar loudoweb commented on June 12, 2024

Finally I made the change because I was able to find a fix in the Spriter forum :)
So 2 solutions for you right now : grab the dev branch of this repo (beware that I didn't test this branch with Flixel right now so please give me feedback), or just update the SpriterHaxeEngine with the updated file or line.

from spriterhaxeengine.

loudoweb avatar loudoweb commented on June 12, 2024

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 :)

from spriterhaxeengine.

sruloart avatar sruloart commented on June 12, 2024

Master should work with master (spatialResult in the FlixelLibrary) dev with dev (info in the FlixelLibrary). I'm working with dev and a demo is a good idea, HaxeFlixel would benefit from that as well, so I would definitely look into it.

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?

from spriterhaxeengine.

loudoweb avatar loudoweb commented on June 12, 2024

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.

from spriterhaxeengine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.