I have a simple top down movement but it's extremely snappy, only moves in 30 degree increments/decrementals. Is there an easy fix to get it smooth? 👀

`

extends KinematicBody2D
 
var speed = 500
 
func _physics_process(delta):
 	var velocity = Vector2.ZERO
 	velocity.x = Input.get_action_strength("ui_right")-Input.get_action_strength("ui_left")
 	velocity.y = Input.get_action_strength("ui_down")-Input.get_action_strength("ui_up")

	
	velocity = velocity.normalized()
	
	move_and_slide(velocity * speed)

`

Subtracting Input.get_action_strengths from eachother (Input.get_axis) to make the vector creates a cross shaped deadzone, using Input.get_vector (circular deadzone) should fix it.

    spacecloud

    mhh, changed it to velocity = Input.get_vector('ui_left', 'ui_right', 'ui_up', 'ui_down') but nothing changed, still snappy... I guess I did something horribly wrong... I will look tomorrow more into it.

    I think i misunderstood, you want acceleration and deceleration, right?