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

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -