我在使用SKTransaction object crossFadeWithDuration时遇到问题。
它曾经完美地在当前SKScene之上淡入一个新的SKScene,但现在它的工作方式更像fadeWithDuration对象,在两个SKScenes之间留下了一个灰色的间隙。
我觉得这种差异在最近的更新中发生了,但直到现在我才注意到。我只是简单地用UIButton调用这个方法:
self.skView.presentScene(Puzzle1(size: (self.view?.bounds.size)!), transition: SKTransition.crossFadeWithDuration(2.0))有没有其他人遇到过这个问题,或者知道任何解决方案/变通方法?
发布于 2015-12-09 08:17:26
这是因为您使用的是self.skView而不是self.scene?.view?.presentScene also when transitioning to a scene do this let Scene = Puzzle1(size : self.size) Scene.scaleMode = SKSceneScaleMode.AspectFill self.scene?.view?.presentScene(Scene, transition: SKTransition.crossFadeWithDuration(2.0))
https://stackoverflow.com/questions/33885253
复制相似问题