Search code examples
xcodesprite-kitpositionscene

My GameScene is not positioned correctly after switching scene


Image of weirdly positioned sccene

So Before i made the start scene, my gamescene worked perfectly. but now it isnt. why? please help.


Solution

  • Take a look at scene.anchorPoint, maybe you accidentally changed it. Default is CGPoint(x: 0.5, y: 0.5).