flip kinematicBody2D vertically

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Timofey

i try use

var right = int(Input.is_action_pressed('d')) - int(Input.is_action_pressed('a'))

if right == 1 and scale.x != 1:
	scale.x = 1
elif right == -1 and scale.x != -1:
	scale.x = -1

if you press to the left, then other objects attached to this object begin to flicker from the left to the right, and if the object is to the left and you press to the right, then the attached object does not move to the right

Hello,
Can you post more code please? Could do with seeing the the bit that’s moving the object and the kinematicBody2D… project upload always helps.

deaton64 | 2021-01-17 15:34

https://drive.google.com/file/d/1d2r774xRcbQMwG76yBT-P2J3OqONQOwi/view?usp=sharing
I made a turn, but I wanted you to advise how best.

Timofey | 2021-01-18 08:30