From 61d38852cd00a2ee855280986dfc18e77d406a7b Mon Sep 17 00:00:00 2001 From: Jamal Millner II Date: Mon, 21 Oct 2024 08:11:55 -0400 Subject: [PATCH] Learning about primary resolve tree. Traversing data with child and parent nodes --- PlayerScript.gd | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/PlayerScript.gd b/PlayerScript.gd index f17fafb..b006614 100644 --- a/PlayerScript.gd +++ b/PlayerScript.gd @@ -188,11 +188,17 @@ func AllObjectsFound(): for n in AllSetsToGoal.size(): var PrimaryPlaceHolder = AllSetsToGoal[n] - if n + 1 < AllSetsToGoal.size(): - var SearchPlaceHolder = AllSetsToGoal[n + 1] - print("Search Placeholder ",n, " is : ", SearchPlaceHolder ) + if n < AllSetsToGoal.size(): + var SearchPlaceHolder = AllSetsToGoal[n] + print() + print("Search Placeholder ",n)#, " is : ", SearchPlaceHolder ) for i in SearchPlaceHolder: print("The Broken up pieces is: ",i) + for index in AllSetsToGoal.size(): + if n != index: + print("The Index is the ",index, " placeholder: ", AllSetsToGoal[index].find(i)) + else: + print(index," Is the same as the placeholder") Move_Check1 = move