Player is not moving in my game

SaviourMemeSaviourMeme Posts: 2Member

I have no Idea why but for some reason my player wont move in my game

My code right now is

extends KinematicBody2D

var velocity = Vector2()

func _physics_process(delta):

if Input.is_action_pressed("ui_right"):
velocity.x = 30

move_and_slide(velocity)

Answers

Sign In or Register to comment.