made falling blocks harder

This commit is contained in:
pennyrigate 2023-05-01 00:04:35 -04:00
parent afe7c35ea7
commit aa39838e16
2 changed files with 9 additions and 8 deletions

View file

@ -31,6 +31,8 @@ func _on_Area2D_area_entered(area):
func _on_VisibilityNotifier2D_screen_exited():
position = startpos
fall = false
refresh_timer.stop()
anims.play("disappear", -1, -1.0, true)
func _on_RefreshTimer_timeout():
collision_shape.disabled = true # disable collision
@ -39,11 +41,12 @@ func _on_RefreshTimer_timeout():
collision_shape.call_deferred("set_disabled", false)
fall = false
anims.play("idle")
anims.play("disappear", -1, -1.0, true)
func _on_FallTimer_timeout():
fall = true
refresh_timer.start()
func _on_Area2D_area_exited(area):
fall_timer.stop()
#func _on_Area2D_area_exited(area):
# fall_timer.stop()