Skip to content
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

[Spine-TS] Rotation property doesn't work #77

Open
shibekin69 opened this issue Aug 23, 2017 · 5 comments
Open

[Spine-TS] Rotation property doesn't work #77

shibekin69 opened this issue Aug 23, 2017 · 5 comments

Comments

@shibekin69
Copy link

Just like the alpha property. Rotation on the group containing the spine object, or applying to the child spine object, or to a spine object directly doesn't work.

@shibekin69
Copy link
Author

This seems to work. Might need further testing though since the positioning problem's still there.

@AleBles
Copy link
Member

AleBles commented Aug 31, 2017

Yeah The thing I noticed that the current setup ALWAYS rotates around the rootbone. Which isn't inherently bad, but the same discussion we had with regards to the position applies here imho, asin; also allow rotation not based on rootbone but on anchor

@shibekin69
Copy link
Author

shibekin69 commented Aug 31, 2017

I tested this again with the latest build and I noticed that the [rotation and angle] property on the group container uses Spine's rotation and not Phaser's. You might want to make it Phaser's rotation (or give the option to use either one). If your spine animation has bones that don't inherit rotation and/or scale, this will look weird (but may make for interesting effects too)

@shibekin69
Copy link
Author

Yeah, I thought my animations suddenly became broken! Good thing I remembered this works in a different way. The rotation on the old phaser-spine's good, maybe the option to rotate the spine object as a Sprite (like in the old phaser-spine) and as a root bone (like now) is good.

@shibekin69
Copy link
Author

Rotation seems to work on WebGL the way it does with Canvas. Since the scaling is a problem, I can't tell if it's being weird.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants