I have several hyenas in my game project, one an instance of a scene and the rest duplicates....
How do I write my code so that whatever hyena is interacted with hyena1, hyena2 etc., the variable in its own script is changed?
Below, the code I have that only works for hyena and none of the duplicates.
func _on_Area_body_entered(body):
if body.name == "hyena":
get_node("../hyena").expire = true
Many thanks.
.... and also if any administrators are reading, I find I cannot post on the "Questions and Answers" part of the site. I am asked to confirm my email address ... something I have already done to post here?
Thanks again.