Find the Position of an instance

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

hello i am currently making a game involving a creature and a piece of fruit i recently discovered that you could get the name and subsequently position of an object upon it entering an area however it is not working with instances ( y’know things in different scenes you spawn in unless instances work in the same scene which i highly doubt ) is there anyway you could find the position of an instance ( the fruit ) once it enters the area i am using the on_body_entered function. A huge thank you to anyone that knows this has plauged me for multiple days now.

:bust_in_silhouette: Reply From: jgodfrey

If you have a reference to an instance in a variable (say, the_instance), you can access its position via:

the_instance.position

Is that what you’re after?