Moving block added (buggy)

This commit is contained in:
debugman18 committed 2026-10-18 16:10:14 -05:00
1 parent 0209b1d02e
commit 8fa42abc6f
4 files changed
+35

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
extends RigidBody2D
var max_distance = position + Vector2(1,0)
func _ready() -> void:
print("START POSITION: " + str(position))
pass
func _process(delta: float) -> void:
print("NEW POSITION :" + str(position))
position.x = move_toward(position.x, max_distance.x, 1)