In farm have:
func _input(event):
if event.is_action_pressed("ui_accept"):
if Compartidos.Crecimiento == 0:
if Compartidos.Flag_seed_select == false:
TemporalLabel("Selecciona una semilla")
else:
PlantSeeds()
elif Compartidos.Crecimiento == 3:
var Seed_Collected = GetSeeds_Texture($Sprite.texture.resource_path)
$Sprite.texture = load("res://Resuources/Farm/TierraFertil.png")
SeedsPercentage(2, Seed_Collected)
I would not know how to implement the player's collision there, to area 2d, so that it determines in which of the 2 farms the player is