mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-24 09:04:22 +00:00
Prevent softlock at start of game
This commit is contained in:
parent
566ff4d00a
commit
200b40db80
1 changed files with 5 additions and 0 deletions
|
@ -29,3 +29,8 @@ func _on_move(movement: Vector2) -> void:
|
|||
func _physics_process(delta: float) -> void:
|
||||
if move_towards.target != null:
|
||||
move_towards.speed *= pow(speed_up_factor, delta)
|
||||
|
||||
|
||||
func _on_delete_if_not_on_screen_screen_exited() -> void:
|
||||
if move_towards.target == null:
|
||||
queue_free()
|
||||
|
|
Loading…
Reference in a new issue