Moving block added (buggy)
This commit is contained in:
1 parent
0209b1d02e
commit
8fa42abc6f
4 files changed
+35
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user