Questions tagged [skview]

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.

136 questions
0
votes
2 answers

Crash calling a ViewController implementing a SpriteKit scene

I am trying to call a viewcontrollerB from a viewcontrollerA with the following code: ViewControllerB *vc = [[ViewControllerB alloc]initWithNibName:nil bundle:nil]; [self presentViewController:vc animated:YES completion:nil]; Within the…
wrynux
  • 23
  • 5
0
votes
1 answer

Displaying a Game Center Directly from a SKScene

I've been trying to display a game center leader board over an SKScene for awhile now and I can't figure it out I've looked at multiple articles.. From Google and Here when i click on the button that brings you to this scene it brings you there and…
0
votes
1 answer

Show UIView in front of SKView - iOS - SpriteKit

I have a simple little Sprite Kit game for iOS. I am trying to get my UIView (which contains main menu buttons/title) to appear above the SKView where some nice moving animations are happening. This is not for game play, that is on a separate…
Supertecnoboff
  • 6,406
  • 11
  • 57
  • 98
0
votes
0 answers

Root ViewController not reacting to message from SpriteKit view

I'm using the root viewcontroller to display a couple of labels to keep track of scores etc, which is working fine. However, the root viewcontroller is not responding to messages from the scene right away when the scene is loaded. The situation is…
Aleksander
  • 2,735
  • 5
  • 34
  • 57
0
votes
1 answer

Adding a UIScrollView to an SkScene/SkView

TL;DR: I have a SpriteKit game that looks great in 4' screens, need a quick fix (like using a scrollview to contain a SKScene) for 3.5' screens without coding everything again, thanks! I currently finished a game I was working on SpriteKit and I'm…
romsearcher
  • 340
  • 5
  • 19
0
votes
2 answers

UIView won't cast to SKView

I've been trying to implement Game Center in my Sprite Kit game, but every time I try to present the leaderboard... -(void)showLeaderboard:(UIViewController*)gcvc { GKGameCenterViewController *leaderboardController =…
evanlws
  • 93
  • 1
  • 12
0
votes
0 answers

Completely Remove SkView and Push new SkView

SKview A holds SKscene A, have a button that removes SKview A SKscene A and at the same time pushes SKview B that holds SKscene B. :) Thank you so much for the help!!!
Xofear
  • 210
  • 1
  • 8
0
votes
1 answer

Lag / Delay on ModalViewController dismiss after loading an xib view over SKView

Imagine this scenario (some code below): I have an SKView on a viewcontroller. I load an xib view (external .xib file) over skview (xib view is a like small menu view that does not cover screen in full). Then, I show a view controller modally…
Nihat
  • 3,055
  • 3
  • 18
  • 28
0
votes
0 answers

SKView Resizing To Fit 3.5in Screen Correctly?

I have an SKView that looks great both on a 4in and 3.5in device. The problem is that on the 3.5in device, the bottom part of the view gets cut off (As if attached to the top). How can I have the top (sky) cut off instead? So that the bottom of the…
KingPolygon
  • 4,753
  • 7
  • 43
  • 72
0
votes
1 answer

Pausing iAd Request Issue

So when my view controller loads I start sending adBanner requests.. - (void)viewDidLoad{ [super viewDidLoad]; self.canDisplayBannerAds = YES; } But I get an error when starting my scene for my game even though I set canDisplayBannerAds…
4GetFullOf
  • 1,738
  • 4
  • 22
  • 47
0
votes
0 answers

Positioning SKView / SKScene that has SKSceneScaleModeAspectFit?

I'm using a basic setup with a SKView to display a SKScene. The SKScene has a pre-defined size and uses a scale mode SKSceneScaleModeAspectFit: - (void)viewDidLoad { [super viewDidLoad]; SKView *skView = (SKView *)self.view; SKScene…
MkkLn
  • 23
  • 4
0
votes
0 answers

two SKScene Objects with separated View orientation

I assumed would have two SKScene objects. The first SKScene should only support the portrait view and the second SKScene should only support the Landscape view and are actually started by the first SKScene. Can this be so implemented, or does it…
0
votes
1 answer

Change background colours of a SKscene after it has been presented using a timer

So I have setup a skscene within a Skview on an app I'm testing. I setup the background color etc like so. SKView *skBG = [[SKView alloc] initWithFrame:self.view.bounds]; SKScene *scene = [SKScene sceneWithSize:self.view.bounds.size]; …
Adam Ware
  • 1,202
  • 11
  • 17
0
votes
1 answer

Using a UICollectionView over an SKScene

I have an app with several SKScenes. To keep it snappy, I have a single UIViewController, that handles 1 SKView. I'm trying to add a UICollectionView to one of the SKScenes. However the problem comes when I try to set the delegate for the…
Smikey
  • 8,106
  • 3
  • 46
  • 74
-1
votes
1 answer

SpriteKit, extreme lag on timers

I am having a slight issue, not sure if its me or sprite-kit, but, I am trying to add an endless background type of side-scroller into my new game. The problem is, I started with a single view application and then imported sprite-kit to use its…
Aras Tahiron
  • 7
  • 1
  • 4
1 2 3
9
10