Xcode 9.1 (and 9.2) - Referenced sprites are not executing Actions added in Scene Editor

前端 未结 4 474
伪装坚强ぢ
伪装坚强ぢ 2020-12-31 15:19

I have come across some unexpected behaviour when using the SpriteKit Scene Editor, and wonder if anyone else is having the same issue.

I created a sprite in a scene

4条回答
  •  既然无缘
    2020-12-31 15:55

    I had this same problem and it was driving me crazy. I tried setting the .isPaused on the scene and on the individual sprites. Nothing worked except the insert breakpoint method. That is not a solution.

    What I discovered was if I set the is paused to true and false (which is the value I wanted) then it worked for all the sprites.

     override func didMove(to view: SKView) {
        self.isPaused = true
        self.isPaused = false
    }
    

    This is a pretty annoying bug in scene editor that should be fixed.

提交回复
热议问题