Comments (7)
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.
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.
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.
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.
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.
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.
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)
- addParticule (unique anim without loadings others from the SpriterEntity obj) HOT 3
- tileLayerLib does not work with recent html5 1.4.1-beta HOT 2
- tileLayerLib does not work with Neko target HOT 1
- cannot tileImages with TileLayerLib when targeing Windows, or Android HOT 3
- Easing tween implementation? HOT 2
- playAnimsStack problem when using looping animation
- pooling HOT 3
- What licence? HOT 1
- Some bone animations explode HOT 19
- FlixelLibrary.hx - Type not found : flixel.graphics.frames.FlxAtlasFrames HOT 2
- Animation of Subentities aren't played HOT 9
- Curve Type of Key inside Mainline is not Loaded HOT 2
- Cannot get the points of an entity HOT 4
- Playing animations in reverse HOT 9
- add Context to Spriter/Libraries
- add Tilemap target HOT 1
- Placement is off. HOT 4
- Compatibility problem with haxe 3.4.0 HOT 13
- openfl & haxeflixel examples HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spriterhaxeengine.