Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to add a background image in spritekit

I've been working on a spritekit game lately and I'm really close to completing it. It's my first time using the library but I'm super excited to start getting the hang of it. I seem to be getting it just fine until I encountered my problem.

I was adding a background Image into my game and I got it to work just like this:

_background =[SKSpriteNode spriteNodeWithImageNamed:@"background"];[_background setAnchorPoint:CGPointZero];[self addChild:_background];

My frame rate was staying at a very high 60 FPS but as soon as I add the background image it dips all the way to a terrible 30 FPS how could this be. There is only 3 nodes on the screen. What did I do wrong?

Mac mini, OS X Mavericks (10.9.4)

Posted on Aug 27, 2014 5:10 PM

Reply

There are no replies.

How to add a background image in spritekit

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.