using Global.GD to store $Spongbob.position.x or $Spongbob.position.y

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

OK the ideal is (I AM HOPING)
is to store both the player($Spongbob.position.x $Spongbob.position.y) as a 2 var’s
so that say form portal1.scene I can use the var’s to change to x y position
and in portal2.scene change them to a different x y position portal3 on and on

and in my case I have 6 different players I created (so how about)
how about store each in global.gd as var’s
then
for each scene
use and if statement
if a == 1
use player1
if a == 2
use player2

scene3 scene4 and on