Tree Trunk start
This commit is contained in:
@@ -79,7 +79,8 @@ var FirstGoTo = []
|
|||||||
var AllSetsToGoal = []
|
var AllSetsToGoal = []
|
||||||
var TargetsArray = []
|
var TargetsArray = []
|
||||||
var Goal = false
|
var Goal = false
|
||||||
#TODO Fix TREE ARRAY BUG
|
var Trunk = []
|
||||||
|
|
||||||
func _input(event):
|
func _input(event):
|
||||||
#if Current_Position != TargetCord:
|
#if Current_Position != TargetCord:
|
||||||
if event.is_action_pressed("ui_left"):
|
if event.is_action_pressed("ui_left"):
|
||||||
@@ -179,26 +180,22 @@ func FoundGoal():
|
|||||||
|
|
||||||
func AllObjectsFound():
|
func AllObjectsFound():
|
||||||
if Tree_Array_SetStart != Tree_Array[0]:
|
if Tree_Array_SetStart != Tree_Array[0]:
|
||||||
|
var CurrentInstructionSet = []
|
||||||
if Move_Check1 != move:
|
if Move_Check1 != move:
|
||||||
print("We Done!!!!!!!!!!!!!!!!!")
|
print("We Done!!!!!!!!!!!!!!!!!")
|
||||||
print()
|
print()
|
||||||
#for n in AllSetsToGoal.size():
|
|
||||||
# print(n ," set is equal to : ", AllSetsToGoal[n] )
|
|
||||||
# print()
|
|
||||||
|
|
||||||
for n in AllSetsToGoal.size():
|
for n in AllSetsToGoal.size():
|
||||||
var PrimaryPlaceHolder = AllSetsToGoal[n]
|
print(n ," set is equal to : ", AllSetsToGoal[n] )
|
||||||
if n < AllSetsToGoal.size():
|
print()
|
||||||
var SearchPlaceHolder = AllSetsToGoal[n]
|
print("The size for ", n, " is: ", AllSetsToGoal[n].size())
|
||||||
print()
|
CurrentInstructionSet.push_back(AllSetsToGoal[n].size())
|
||||||
print("Search Placeholder ",n)#, " is : ", SearchPlaceHolder )
|
print("The max is: ", (CurrentInstructionSet).max())
|
||||||
for i in SearchPlaceHolder:
|
var key = CurrentInstructionSet.find(CurrentInstructionSet.max())
|
||||||
print("The Broken up pieces is: ",i)
|
for i in AllSetsToGoal.size():
|
||||||
for index in AllSetsToGoal.size():
|
if i != key:
|
||||||
if n != index:
|
print(i)
|
||||||
print("The Index is the ",index, " placeholder: ", AllSetsToGoal[index].find(i))
|
for x in AllSetsToGoal[key]:
|
||||||
else:
|
print(x)
|
||||||
print(index," Is the same as the placeholder")
|
|
||||||
|
|
||||||
|
|
||||||
Move_Check1 = move
|
Move_Check1 = move
|
||||||
|
|||||||
Reference in New Issue
Block a user