sprite-kit 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
6
Solved
This SpriteKit action repeats by calling itself with a completion closure. It uses a closure, rather than an SKAction.repeatActionForever(), because it needs to generate a random variable each repe...
Acroter asked 25/6, 2014 at 17:27
5
Solved
I'm looking to create a shop in my game (In SpriteKit) with buttons and images, but I need the items to be scrollable so the player can scroll up and down the shop (Like a UITableView but with mult...
Holloweyed asked 11/12, 2015 at 18:7
3
I'm trying to create an SKSpriteNode with an image from the SF Symbols font, and while I can do it, I can't seem to make it any color other than black.
Here's my code:
let image = UIImage.init(sy...
Sememe asked 23/1, 2020 at 20:15
4
Solved
I'm trying to colorize a spriteNode (in this case its named background) using sprite kit but cant get the color to change. I have a sprite that I want to colorize. I'm changing the color property o...
Malign asked 27/7, 2014 at 19:52
2
Running a SpriteKit particle system in the overlaySKScene property of a SCNView causes the app to crash with the stack trace below.
Based on the stack trace, it seems like it's all system code run...
Quinn asked 23/3, 2018 at 7:27
1
Solved
I have SpriteKit nodes on which I apply Core Image filters using SKEffectNode. The sprites are images added by the user on the scene, and can be of any size. Some of the filters change the size of ...
Kernite asked 6/1 at 22:0
6
Solved
I have two SKSpriteNode and their colors are defined like this:
colorNode[0].color = UIColor(red: 255, green: 0, blue: 0, alpha: 1)
colorNode[1].color = UIColor(red: 0, green: 255, blue: 0, alpha:...
Condonation asked 7/12, 2014 at 12:46
12
Solved
I want to create my own progress bar in Sprite Kit.
I figured I will need to images - one fully empty progress bar and filled progress bar.
I have those images, I put filled one on top of empty one...
Azal asked 9/5, 2014 at 11:7
2
I am creating a SpriteKit game with a tiled map. Each tile is an SKSprite node. When I have about 800 tiles, there are no problems. But if I try to increase the size of the map to around 2000 tiles...
Daredevil asked 16/10, 2013 at 18:29
3
Solved
Hi I am making a game and I have added a share button to the game. I want the user to be able to share a message, URL, and screenshot along side each other in one message.The sharing aspect of it i...
Bloodfin asked 25/4, 2015 at 1:31
6
Solved
I am having a problem in my sprite kit app where my NSUserDefaults variable is not working. In createSceneContents (which I know is being called)
if (![defaults objectForKey:@"obj"]) {
difficulty...
Tabloid asked 19/2, 2014 at 0:9
1
I have seen similar questions before but they had no answers.
Could somebody help with this problem?
Peplos asked 7/1, 2023 at 9:41
3
I have build a swift game with a "GameViewController.swift"
import UIKit
import SpriteKit
class GameViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
if l...
Wigfall asked 3/10, 2017 at 2:48
7
I want to Create a endless scrolling background for my spritekit game, iT should consist of one or two images probably, which repeat themselves? I found these one and two examples, but they are in ...
Guardi asked 13/10, 2014 at 19:34
2
I have a problem: In a bigger project with a similar structure I am getting a memory Leak from the Instrument Tool.
If you are putting this in Xcode and run, you should see a line which is moving t...
Supertax asked 13/5, 2021 at 22:5
3
Solved
I'm trying to calculate an elapsed second in deltaTime but I'm not sure how to do it, because my deltaTime constantly prints 0.0166 or 0.0167.
Here is my code:
override func update(_ currentTime:...
Valentia asked 29/12, 2016 at 3:45
3
I am beginner in Scenekit development, I am trying to add UIView as diffuse content of SCNPlane node but getting some weird crash.
Code:
override func viewDidLoad() {
super.viewDidLoad()
let ...
Sam asked 10/6, 2019 at 7:7
3
Solved
I'm making a game where I need the background color to change slowly. As the user plays the level, the background color should be changing to show progress.
I was thinking of having the starting ...
Percutaneous asked 29/8, 2015 at 14:40
2
Solved
i am having an issue with playing back a video in my intro scene. i have added my video to the scene and it plays fine. i just want it to repeat again and again. is there any way to set this video ...
Pashto asked 2/3, 2015 at 16:38
5
Solved
How to get UIImage from SKTexture?
I tried to get UIImage from SKTextureAtlas, but it seems not working too:
// p40_prop1 is a part of SKTextureAtlas
UIImage *image = [UIImage imageNamed:@"p40_pr...
Tried asked 11/1, 2014 at 10:38
3
When I run this code.
runAction(SKAction.playSoundFileNamed("Click.mp3", waitForCompletion: false))
My app was Crashed:
Terminating app due to uncaught exception 'NSInvalidArgumentException', ...
Soane asked 6/11, 2014 at 12:24
1
I have a SwiftUI/SpriteKit project in which I'm receiving the following error:
Updating selectors after delegate removal failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection...
Mcneal asked 16/4, 2021 at 9:29
2
I recently updated to Xcode 11.4.1, before this everything was fine. After I updated and built the project I got this error:
When I click it shows me this message:
And as the message says, I ...
Schaal asked 21/5, 2020 at 15:59
1
I want to add an SKScene (.sks) to my Swift Playground App project (.swiftpm) on Xcode but when I add it to the project navigator I get the following error:
found 1 file(s) which are unhandled; exp...
Legend asked 6/4, 2022 at 19:53
1 Next >
© 2022 - 2024 — McMap. All rights reserved.