Move and Slide & Floating Mode

This commit is contained in:
2023-06-04 15:26:31 -04:00
parent af6dd97cb3
commit 5262463741

View File

@@ -24,8 +24,7 @@ func set_move_direction(dir):
move_dir = dir
func move_player(delta):
position.x += move_dir.x * max_walk
position.y += move_dir.y * max_walk
move_and_collide(move_dir * max_walk)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):