Using SpriteKit, Swift 2, Xcode
I'm trying to change one of my Node's size after it has been called even if it isn't unique (Theres a bunch of them).
In less confusing terms I'm trying to change a Node's size without doing it in the initial declaration. This is what I have tried:
self.childNodeWithName("player")?.size.width = 10
However this doesn't work since childNodeWithName returns a Node and not a SKSpriteNode. Since Nodes have no access to "size," this solution doesn't work. I've also tried using
self.childNodeWithName("player")?.setScale(0.5)
Now the problem with this is that I cannot reference this as a number. I'm trying to continuously cut its size in half every time I call this, but I also need to be able to reference its size as a number. To my knowledge setScale doesn't offer this capability.
Any Ideas? Thanks!