Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extends CharacterBody2D
- @export var speed = 500
- func _physics_process(delta):
- velocity = transform.x * speed
- move_and_slide()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement