I'm trying to subclass SKSpriteNode and during runtime I get a bad access error and I'm not sure why. Here is my code:
class Paddle: SKSpriteNode {
override init(texture: SKTexture!, color: UIColor!, size: CGSize){
super.init(texture: texture, color: color, size: size)
}
required init(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
}
}
Then in the parent class SKScene,
var paddle = Paddle(texture: SKTexture(), color: UIColor.blackColor(), size: CGSizeZero)