SKView is the UIView subclass Sprite Kit uses to render the currently presented scene's nodes onto. All nodes displayed by Sprite Kit are children (so to speak) of a SKView.
Questions tagged [skview]
136 questions
1
vote
0 answers
How to resize Xcode simulator/ skView size
I've tried to resize my SKView for my app using multiple different methods given to me from multiple people. Here is what I am trying to get rid of:
Do you see the scroll bar on the right? When I scrolled up that is where the default "hello world"…

Gage
- 61
- 2
- 7
1
vote
0 answers
Swift random point on screen for SKNode
I am trying to generate a random point on the screen to create an SKSpriteNode:
let px : CGFloat = CGFloat(drand48())
let py : CGFloat = CGFloat(drand48())
let screenSize : CGRect = self.frame
let location = CGPoint(x: screenSize.width*px,y:…

Ben Sisson
- 33
- 5
1
vote
1 answer
SKView! found nil when presented
class MyClass: UIViewController {
var playerViewController = AVPlayerViewController()
var playerView = AVPlayer()
var playerTimer = NSTimer()
override func viewDidAppear(animated:Bool) {
super.viewDidAppear(true)
…

AlrightyRob
- 163
- 13
1
vote
1 answer
iOS: UIView vs. SKView
I am creating a game that involves mini-games inside of separate levels (laid out in picture). I started by using UIViewController, but once some of the levels needed animations and gravity, I wanted to switch to SKView, because doing all of those…

Kiley
- 409
- 1
- 5
- 19
1
vote
1 answer
Why does setting frameInterval on a SKView not work?
I'm trying to reduce the framerate to a maximum of 30 FPS. The official documentation says to use:
skView.frameInterval = 2;
I read through all the available documentations as well as every similar question asked here on stackoverflow or in other…

Simon Kemper
- 635
- 1
- 7
- 16
1
vote
1 answer
iPhone 5s SpriteKit drawing oddities
I understand that the iPhone 5s has a pixel resolution of 640 x 1136 and a point resolution of 320 x 568 (for backward compatibility with non-Retina devices).
The problem/confusion/oddity seems to come in when I'm working with…

AlvinfromDiaspar
- 6,611
- 13
- 75
- 140
1
vote
1 answer
Swift SKView textureFromNode goes wrong
I started to learn swift by making a game, and encountered some problems.
I am working on a tile game. I created a board of white tiles 6x6 with some holes, and on top of them I created tiles that will move that a coloured.
white tile is…

iamandrewluca
- 3,411
- 1
- 31
- 38
1
vote
1 answer
When player jumps: scene moves down, player stays at place like Doodle Jump
I am working on a game like doodle jump.
But when the player jumps above the screen, the player should stay at the edge of the screen and instead the objects will move downwards so it looks like the player i still moving upwards.
But how do I do…

sdd
- 889
- 8
- 29
1
vote
1 answer
SKView paused automatically resumes
I am designing a SpriteKit game in swift, and inside my gameplay SKScene I have a method called when I want to pause the game. It looks like this:
func pause() {
view?.paused = true
}
The game pauses perfectly, but after a seemingly arbitrary…

mogelbuster
- 1,066
- 9
- 19
1
vote
0 answers
Scenes not deallocating
I am creating a SpriteKit game and I am having a lot of trouble. The first screen is a menu, when you click the play button, the player is put into the game itself using the code:
override func touchesBegan(touches: NSSet, withEvent event: UIEvent)…

Marzukr
- 95
- 3
- 11
1
vote
1 answer
Unknown class SKView in Interface Builder file
i changed the target for my App from iOS 7.0 to 6.0 and now i get that error, when i start the iOS simulator. I search at google and tried all suggestions.
Library Simulator cleaned.
Targets - compile sources - all .m files added.
iOS simulator…

Mehmet63
- 81
- 1
- 8
1
vote
0 answers
ios SpriteKit: how to make SKLabelNode object alway on top in a SKView
SKView has some SKSpriteNodes and a SKLabelNode. And SKLabelNode alway show some help info text. While SKSpriteNode object moves in SKView and sometimes it will hide the SKLabelNode. Is there any method to make the SKLabelNode always on the top…

Qijin
- 307
- 2
- 13
1
vote
2 answers
How to detect collision between SKSpriteNode and SKView SpriteKit
I have nine SKSpriteNodes that fall down from the top to the bottom of a screen. Also i have SKView, and I can drag it over the screen. How can I detect collision of my SKView with one of the nine SKSpriteNodes dynamically ?

Igor Prusyazhnyuk
- 133
- 2
- 14
- 29
1
vote
1 answer
Force change interface orientation between scenes
How can I force the game to switch from portrait (Scene 1) to landscape mode (HomeScene) in between scenes?
I have two scenes, Scene1 (which is portrait) and HomeScene (which is designed to be landscape)
I am calling this line from Scene 1.…

ZeMoon
- 20,054
- 5
- 57
- 98
1
vote
2 answers
Adding UITextView to a scene in SpriteKit
I trying to create a game, and following Apple's advice I am using multiple scenes.
You could consider the game to be a text heavy point and click adventure.
Therein lies the problem. Lots of text, having done a bit of a search, it seems the…

Gavin
- 13
- 5