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

[3.0] Setting negative x scale on a node with a skeleton/big hierarchy flips scale every frame. #11205

Closed
Boothand opened this issue Sep 12, 2017 · 3 comments
Labels

Comments

@Boothand
Copy link

Operating system or device, Godot version, GPU Model and driver (if graphics related):
Win7 x64, Godot 3.0

Issue description:

scale = Vector2(-1, 1) flips my character every frame, alternating between 1 and -1, and it happens on the Y axis.
Using set_scale(-1, 1) does the same but on the X axis.

Steps to reproduce:
Open example project I attached, open Stork.tscn and run that scene, check the script on the root node.

Link to minimal example project:

Stork 2, scale glitch.zip

@Boothand
Copy link
Author

Seems to be because move() is called as well. Duplicate of #5929

Still a bit of an issue, since flipping sprites isn't going to be very manageable with a skeleton hierarchy like this? Also, scale = Vector(1, -1) has expected results, just not on the X axis.

@letheed
Copy link
Contributor

letheed commented Sep 14, 2017

Related

@bojidar-bg
Copy link
Contributor

I'm going to close this as a duplicate of #12335 since the latter has more activity. If it is not a duplicate, feel free to comment here and we will reopen it.

As a workaround for the mentioned problem, try putting the whole visual hierarchy inside a Node2D inside the KinematicBody2D. That way, you can have separate visual and physics scale.

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

No branches or pull requests

3 participants