Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extends Node2D
- const SPEED = 500
- func _physics_process(delta):
- if Input.is_action_pressed("left"):
- position.x -= SPEED * delta
- if Input.is_action_pressed("right"):
- position.x += SPEED * delta
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement