Plus de feux rouges et des portes qui vont vivre
Et oui du nouveau encore!
This commit is contained in:
@@ -34,8 +34,9 @@ func _process(delta: float) -> void:
|
||||
current_speed = min(current_speed + acceleration, speed)
|
||||
$ZIndexControler/ShapeCast2D.enabled = !$CollisionHorizontal.disabled
|
||||
|
||||
|
||||
if (targetPosition != null):
|
||||
velocity = (targetPosition - position) * current_speed * delta;
|
||||
velocity = (targetPosition - position) * current_speed * delta
|
||||
|
||||
move_and_slide()
|
||||
if velocity:
|
||||
|
||||
Reference in New Issue
Block a user