using Godot; using System; public partial class Exit : StaticBody2D { // no variable, no nothing, just detects the player and tells the game that it should increment the level counter private void _on_exit_area_area_entered(Area2D area) { if (area.IsInGroup("Player")) //if player is in exit { GetNode("/root/OutofBody").Level = GetNode("/root/OutofBody").Level + 1; } } }