extends CharacterBody2D var camera var test_apocalypse = 0 func _ready() -> void: camera = get_node("/root/Game/Camera2D") func _physics_process(delta: float) -> void: # Add the gravity. pass func _on_collect(DropsBase): test_apocalypse += 1 if test_apocalypse == 3: get_tree().call_group("enemies", "_die") test_apocalypse = 0 camera.shake(0.3,0.8) pass