0 votes

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

Godot version 3.2.3.stable.official
in Engine by (154 points)

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.

Please log in or register to answer this question.

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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.