ios - Unable to set Size defaults in Swift 2.0 Spritekit -
i in process of migrating game ios 9, swift 2.0 , xcode 7.3. in following section attempting set default anchorpoint t0 0.5. doesn't want work.
the follow code inside gamescene:skscene class file.
override init(size: cgsize) { super.init(size: size) anchorpoint = cgpoint(x: 0.5, y: 0.5) } required init?(coder adecoder: nscoder) { fatalerror("init(coder:) has not been implemented") }
i getting below error:
fatal error: init(coder:) has not been implemented:
you have write (and initialize of own variables):
required init?(coder adecoder: nscoder) { super.init(coder: adecoder) }
Comments
Post a Comment