Comments (5)
Hey @AleBles , do you know which version of spinejs is in use here? I think I may need to use an older version of the editor to make compatible spine animations..
from phaser-spine.
This library uses the latest version of spine-js, which is stuck at 3.1.08
from phaser-spine.
Ok! I'm trying to dig into the code to see what the heck's going on with the scaling issue. Here's what I've found so far:
When I do a uniform scale of a bone, it looks fine.
When I do a non-uniform scale of a bone of just the X or Y axis, it doesn't look fine. I do see some kind of transform, like it's trying to shrink both X and Y axes where it's only supposed to scale down one of them.
When I get rid of the scale, it looks fine (but without the scaling :( )
I've set Phaser.AUTO and double checked that Phaser is running with WebGL enabled.
EDIT: I've done a minimal sample to see what's going on.
It seems local scaling isn't working. The scale X and Y is locked to the world's X and Y (X being horizontal, and Y being vertical on the screen). This is what happens when we have an object like so lined up downwards and we animate Bone B to scale only its X axis:
-Bone A
-Bone B
-Bone C
- Bone ABC are standing like a pole (0 degree rotation): Scaling OK
- Bone ABC are lined up diagonally (rotated 45 degrees) Scaling NOT OK
- Bone ABC are lined up horizontally (rotated 90 degrees) Scaling NOT OK
I've attached a minimal demo and a spine project showing this problem. The animation in the editor is the correct one.
from phaser-spine.
Hi there,
I just started to use this extension today, and I saw the same issue. Is there a work arround ?
Thanks !
from phaser-spine.
I've also run into this problem with the plugin - anyone made any progress with it?
from phaser-spine.
Related Issues (20)
- Phaser 3? HOT 4
- webpack import 'phaser-spine' HOT 2
- set duration for animation
- game.load.spine is not a function
- Phaser 2.6.2 and the "rotated" property
- How to set spine alpha?
- how to change the tint of spine object? HOT 5
- Disabling inherit scale doesn't work HOT 3
- Display issues when parameter triangleRendering is false HOT 3
- Pause spine object? HOT 3
- Playing multiple animations together HOT 2
- spine-ts branch: mip maps not supported
- Typo in spine.SkeletonData.findSlot()
- DrawOrder bug - Sometimes not working in Phaser (but appears to work in Editor) HOT 1
- [spine-ts] Wrong Y-Position of Origin is Rendered HOT 2
- FlipX not working in WebGL renderer
- How to Clean Track or better return to previous state
- [spine-ts] Does it support color tint and alpha tint? HOT 1
- PhaserGame.add.spine( x, y, key) raise TypeError: points is undefined HOT 1
- Is it possible change altas
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 phaser-spine.