extends Area2D class_name RisingLevel @export var RISING_SPEED = 30 func _ready(): body_entered.connect(_body_entered) func _physics_process(delta): $shape.position.y -= RISING_SPEED * delta self.position = self.position func _body_entered(body): if body.is_in_group("player"): body.die() if body.is_in_group("npc"): body.die(RISING_SPEED)