skscene Questions
2
Solved
I am adding a UIView to the view of an SKScene. Later, when I wish to remove that UIView form its superview, using the standard method of uiview.removeFromSuperview does not seem to work. How shoul...
Commorant asked 5/9, 2014 at 22:35
7
Solved
When Im finished with my SKScene is there a way to dismiss the SKScene from within my SKScene class?
If not back in my Viewcontroller where I present my SKScene [skView presentScene:theScene]; is ...
Forestforestage asked 20/2, 2014 at 21:46
4
Solved
I have the following in GameViewController.swift
class GameViewController: UIViewController {
override func viewWillLayoutSubviews() {
super.viewWillLayoutSubviews()
println(self.view.frame.si...
Goliath asked 19/9, 2014 at 11:55
4
Solved
I am having an issue when creating a SpriteKit scene within SwiftUI. I created this project initially as a SwiftUI project.
Here is the code I have so far:
ContentView.swift:
/// Where the UI conte...
Isobelisocheim asked 16/6, 2019 at 0:28
3
Solved
@property (SK_NONATOMIC_IOSONLY, getter = isPaused) BOOL paused;
I found this line of code that I could add into my project, how would I pause my whole game?
For example:
-(void)touchesBegan:(N...
Leoine asked 6/2, 2014 at 3:6
2
I'm using ARKit with SpriteKit. My AR feature is not a core feature in my app, users may optionally navigate to a viewController with an ARSKView where I configure and set an SKScene in the ARsessi...
Popelka asked 11/10, 2017 at 7:9
2
Solved
Here I was getting all hyped about pulling off-screen Metal textures out of SpriteKit after watching the session 609 video from WWDC2017.
This was over a year ago!
And yet there are absolutely no...
Audry asked 19/6, 2018 at 18:35
2
Solved
I would like to add a SKScene to my main GameScene. SKReferenceNode seems to be a good solution.
I have :
- GameScene.sks (main scene)
- Countdown.sks (scene to add to GameScene)
- Countdown.swift...
Present asked 8/9, 2016 at 12:2
5
Is there anyway to prevent SpriteKit from automatically unpausing a scene when entering foreground/becoming active?
I set paused = true and want it to remain so even when the app becomes active ag...
Watters asked 17/8, 2014 at 17:25
4
Solved
I am creating a game in sprite kit using swift, and I am trying to be able to move the SKScene around with a finger because not all of the nodes fit within the scene. I have already created world, ...
Griseous asked 10/8, 2016 at 6:28
2
Solved
I have a camera in the center of SceneKit scene at position(0,0,0)
I'm rotation the camera around the y-axis to show different parts of the scene.
I want to show arrows at the left/right side of m...
1
Can someone please help me understand the difference between sceneDidLoad and didMove(to view:) in a GameScene? I realize that didMove(to view:)
is called once the scene is presented. While sceneD...
1
In Project -A- I used GPUImageView to display Video (recorded on greenscreen) with transparency. Using the GPUImageChromaKeyBlendFilter, and so on.
and works Superb.
Another project -B- based on A...
3
Solved
I want to create a button in SpriteKit or in an SKScene that sends the view to another view controller.
I tried using the "performSegue with identifier ", however apparently an SKScene doesn't sup...
Ob asked 4/7, 2016 at 21:4
3
Solved
I have problem with AVAudioPlayer and playing the short sounds in my spritekit game. I have quite dynamic game scene and when the user tap into particular element I want to play simple "beep" sound...
Reciprocate asked 26/6, 2016 at 19:56
1
I have been trying to reset the GameScene by creating a new duplicate of the GameScene, which works. However, the problem is that the scene doesn't deallocate, which is definitely an issue since I ...
Milurd asked 15/1, 2017 at 1:1
2
Solved
I am wanting to 'reset' and 'restart' the GameScene so it is as if the GameScene was first called. I have looked at different methods for doing this, but each time I get a warning that I'm trying t...
Cook asked 14/1, 2017 at 11:28
4
Solved
I have long 2d level so I split it into more .sks files. I have "GameScene" where I can join them in Scene editor with drag and drop. It creates SKReferenceNodes. I've done that with success. But I...
Reddish asked 3/4, 2016 at 17:47
1
Solved
I'm trying to learn how to make a GameManager type class, and making individual classes for each of my GameScenes... probably the wrong thing to do, but for the sake of this question, please accept...
Laccolith asked 9/11, 2016 at 20:44
2
I created a simple game with SpriteKit, however every time I run the game, the memory usage in simulator increases about 30mb, but never decreases when the game is finished.
When I run the game ov...
Bey asked 17/6, 2015 at 13:18
2
Solved
I want to create a level using my custom subclasses of SKNode. I tried adding an SKNode to the scene editor and using the "Custom Class" tab give the class that I want it to be but that did absolut...
Chaisson asked 5/7, 2015 at 13:8
0
I'm wanting to create a simple game where you fly around a large game scene in SpriteKit, with a camera following the player. It will be a portrait-oriented game.
What I'm wondering is how to prop...
Rizal asked 19/6, 2016 at 4:36
5
I'm having a hard time finding the answer to this question I assume is not that hard.
How can I reference methods and properties defined on a viewcontroller from a SKScene ?
And building on that:...
Cavorelievo asked 17/2, 2014 at 11:25
1
Solved
I made a game using the default new game project and then inserted a normal UIView as the app intro scene. I'vs since 'upgraded' the intro into using an SKScene, with buttons that push the original...
Asclepius asked 15/2, 2016 at 8:20
3
Solved
All I want if for when the user touches a skspritenode in the skscene, it will go to a different view like performseguewithidentifier. Thanks for any help. I can post code, but it seems like a gene...
Adduction asked 21/3, 2014 at 2:51
1 Next >
© 2022 - 2024 — McMap. All rights reserved.