So I'm working on a game in SpriteKit and want to animate the screen rotations myself. My current approach is doing UIView.setAnimationsEnabled(false) so the screen rotates instantly, and then in my scene, I rotate everything 90° in the appropriate direction to make it seem like nothing got rotated, then I do my rotation animations in my scene.
The problem is, when rotating, there's a split second where the scene gets resized before the view actually gets rotated, so it looks stretched for that split second, and not the seamless effect I'm going for. (Like that same stretched effect most games on the App Store have at the beginning of screen rotations)
Any advice on what to do? Should I take a completely different approach for handling rotations? Thank so much!
Also, SKView.setAnimationsEnabled(false) doesn't seem to have any effect in the current first iOS10 beta. Does anyone know if that's an intentional change? Or just a bug?
Aucun commentaire:
Enregistrer un commentaire