Top "Sprite-kit" questions

SpriteKit is Apple's framework for creating 2D games for iOS 7+, macOS 10.

How can I make a function execute every second in swift?

I want to add a score to the top of my scene in the game I am working on. The …

ios swift sprite-kit
Swift - Must call a designated initializer of the superclass SKSpriteNode error

This code worked on first XCode 6 Beta, but on latest Beta it's not working and gives such errors Must call …

ios swift sprite-kit skspritenode designated-initializer
Xcode 6 - xcassets for universal image support

Currently working on a universal SpriteKit project. I'll be supporting the following devices: iPhone 4/s, iPhone 5/c/s, iPhone 6, iPhone 6+ …

ios xcode sprite-kit xcode6 xcasset
Setting up buttons in SKScene

I'm discovering that UIButtons don't work very well with SKScene, So I'm attempting to subclass SKNode to make a button …

ios objective-c uibutton sprite-kit
Class does not implement its superclass's required members

So I updated to Xcode 6 beta 5 today and noticed I received errors in nearly all of my subclasses of Apple's …

ios swift sprite-kit
How to rotate a sprite node in sprite kit?

I am making a game and I'm having troubles with rotating a sprite node, This is the code I have; …

ios sprite-kit rotation
How do I detect if an SKSpriteNode has been touched

I am trying to detect if my sprite node has been touched and I have no idea where to start. …

swift sprite-kit touch skspritenode touchesbegan
Background image size Sprite Kit Game

i just started a new Sprite Kit project to learn how to use it. I watched and read a lot …

ios iphone sprite-kit
CGPointMake in Swift

How to use CGPointMake in Swift? Is there an equivalent for it? I am getting an error: Use of unresolved …

ios objective-c swift sprite-kit cgpoint
How to draw a line in Sprite-kit

How can one draw a line in Sprite-kit? For example if I want to draw a line in cocos2d, …

ios ios7 sprite-kit skshapenode