i am usingbox_entered

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Syntax

Hi, in line that says
func _on_box1_area_entered(Area2D area) → void:
player_is_near_box1 = true
func _on_box1_area_exited() → void:
player_is_near_box1 = false

my “colider, player” is a kinematic body, so i use a func _on_box_body_entered(body) → void.

What can i use to define that player_is_near_box1 = true