I cannot access the screenshot.
I wish I knew what was up with my server, sorry
myGV is a structure to hold a few global variables.
myGV.guessBar = GuessBar : SKSpriteNode
The GuessBar has 6 children, GuessSlot : SKSpriteNode. GuessBar has an array that has all six instances of them.
Here is the code for GuessBar:
class GuessBar : SKSpriteNode{
var guessSlots : [GuessSlot] = []
init(color: SKColor, size: CGSize) {
super.init(texture: nil, color: color, size: size)
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
Here is the code where I fill the arrays in the guessBar
func createGuessBar(color: SKColor, size: CGSize, factor: Int) -> GuessBar
{
let myGuessBar = GuessBar(color : color, size: size)
//other unrelated code
for x in 0...5{
let mGuessSlot = GuessSlot(color: .clear, size: CGSize(width: iFactor, height: rFactor), width: myGuessBar.size.width, iFactor: x, guessBarRef: myGuessBar)
myGuessBar.guessSlots.append(mGuessSlot)
}
//other unrelated code
return myGuessBar
}
So the exact info from the debugger reads:
myGV.guessBar = (SKSpriteNode?) 0x0000600001984580
*SpriteKit.SKSpriteNode (SKSpriteNode)
*guessSlots ([GuessAgain.GuessSlot]) 6 values
myGV.guessBar.guessSlots = Invalid Expression
The way I see it, everything is running fine. If I expand the guessSlots in the debugger it lists each value. I just can't get the syntax right, going by the last line in the debugger, to access that array from my main structure myGV.