Godot Version
v4.3.stable.steam [77dcf97d8]
Question
Somehow my movement is bluring my player character and I have no idea why.
It’s looking like this:
When I’m not moving my character it looks like this one:
I activated “snap to 2D” and deactivated antialiasing.
I also deactivated every kind of animation.
This here is my movement script:
if not is_on_floor():
velocity += get_gravity() * delta
# Handle jump.
if Input.is_action_just_pressed("player_up") and is_on_floor():
velocity.y = JUMP_VELOCITY
# Get the input direction and handle the movement/deceleration.
# As good practice, you should replace UI actions with custom gameplay actions.
#var direction = Input.get_axis("player_left", "player_right")
var direction = Input.get_axis("ui_left", "ui_right")
#if direction != 0:
#$AnimationPlayer.play("run")
#else:
#$AnimationPlayer.stop()
#$Sprite2D.frame = 0
if direction:
velocity.x = direction * SPEED
else:
velocity.x = move_toward(velocity.x, 0, SPEED)
move_and_slide()
Do you have any idea, what is causing this strange pixel movement? Somehow the whole character looks strange and parts of the “face of the robot” (which is sitting on top of the body) is also somehow not visible.
BR
Willi