0 votes

I've made a cutout animation with a skeleton and polygons, it has run and walk but its only to the right.How do i turn it left when i press my left key?. I've tried the

self.set_scale(Vector2D(-1,1))

but it makes it glitch. Anyone has ideas?

asked Jul 10, 2019 in Engine by Yoseph (38 points)
edited Jul 10, 2019 by Yoseph

Also for future reference it's Vector2() not Vector2D()

3 Answers

0 votes

self.flip_h = true
This should do the trick

answered Jul 11, 2019 by StoneForged (61 points)
0 votes

I had the same problem, and I found that I had to put the skeleton and the polygons together into a Node2D, then scale as you're doing now.

answered Aug 3, 2019 by triangledot (14 points)
0 votes

Flipping the animated polygon is rather easy using the suggestions but one thing to also consider about flipping animations or even animated sprite sheets, if the animation has arms and it is carrying something in the right hand when the animation is flipped, magically the something is now in the left hand. the unexposed or partially exposed arm should be exposed when the direction is changed and the item should not change hands.

answered Nov 10, 2019 by garywayne (14 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.