sprite-kit Questions
8
Solved
I am using bodyWithPolygonFromPath to define the volume of a physics body, and I used http://dazchong.com/spritekit/ to get the paths required. But the path does not seem correct and I wish to see ...
Cartridge asked 19/1, 2014 at 6:5
3
Solved
In SpriteKit, if you load an image with the [SKTexture textureWithImageNamed:] method, it will first search your bundles, then atlases, if it fails to find your texture, it will then create a place...
Criticize asked 5/4, 2014 at 1:30
2
For performance reasons I have to switch from SceneView to SpriteView in my macOS project (showing more than 63 scenes did not work with SceneView, but it does with SpriteView).
But now im facing a...
Pretonic asked 2/4, 2022 at 7:50
3
Solved
I'm trying to create a spinable node similar to the "prize wheel" in this question. So far I have the flinging capability, adding angular impulses on a physics body using a UIPanGestureRecognizer t...
Zoogloea asked 21/8, 2015 at 14:48
4
Solved
I have a custom class that is an SKNode, which in turn has several SKSpriteNodes in it. Is there a way I can detect touches on these child SKSpriteNodes from my game scene?
I'm working in swift
Murtha asked 12/10, 2014 at 19:6
2
Whenever I run my sprite kit app this error is logged constantly. It makes it really hard to debug because the log is filled with these messages. They don't seem to effect how the app runs, so simp...
Lend asked 13/11, 2015 at 5:20
5
Solved
I just started doing ios development with swift and I can't figure out how to draw a circle. I'm just trying to draw a circle, set it to a variable and display in on the screen so I can later use i...
Shipowner asked 4/11, 2014 at 4:27
2
Solved
I'm using SpriteKit (with Xcode 6 and Swift) and I have a character on the screen that I move around with on screen joysticks, and I want a little trail to follow behind him. How do I do that?
H...
Omnivore asked 18/8, 2014 at 17:27
2
Solved
I am trying to chroma key a video in ARKit, and I have done very similar to what @Felix has done here: GPUImageView inside SKScene as SKNode material - Playing transparent video on ARKit
But, when...
Hildegard asked 21/4, 2018 at 21:13
0
It seems that SpriteKit doesn't batch the draw calls for textures in the same texture atlas. There are two different behaviors, based on how the SKTextureAtlas gets initialized:
The draw calls are...
Mauricemauricio asked 13/11, 2021 at 18:58
7
Solved
I'm working in a side-scolling game and I need to know what nodes are in an area to implement something like "line of sight". Right now I'm trying using enumerateBodyiesInRect() however it's detect...
Elisabethelisabethville asked 20/7, 2014 at 14:11
4
The u_time variable in shaders tells you the current time. However, if you reuse a shader (as is best practice according to Apple: "If multiple sprites need the same behavior, create one shader obj...
Thornton asked 5/2, 2018 at 20:41
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
7
Solved
I am making a sprite kit game and it is obviously more efficient to have one big SKSpriteNode with a tiled texture, than having multiple SKSpriteNodes with the tile texture. My Problem is that when...
Effeminacy asked 13/11, 2013 at 20:19
4
Solved
Is it possible give a circular mask/crop to an image node without jagged edges?
Following this example from Apple (https://developer.apple.com/reference/spritekit/skcropnode), the result is not i...
Strother asked 10/10, 2016 at 22:39
5
Solved
I am trying to create and assign a Swift Dictionary of type [String : String] at the SKSpriteNode property userData which requires an NSMutableDictionary. When I try this I get the error:
'[String...
Halie asked 20/5, 2015 at 15:35
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
3
Solved
WARNING: 40: ERROR: couldn't get default input device, ID = 0, err = 0!
I ran into this error message (/crash) as I tried using the iOS simulator (they all seem to give the same error)- running o...
Laser asked 20/5, 2016 at 21:55
2
Solved
Diving into sprite kit (xcode 5). There are two example programs I'm working with, 1. the default spaceship example that's included when creating a new project and 2. the Adventure Game, which I do...
Undergrowth asked 24/10, 2013 at 4:21
2
I am building a small utility app for macOS that combines SpriteKit with AppKit. Specifically, I am using an SKView as the "background" for the app window (mostly for specific types of animations t...
Fortin asked 29/9, 2017 at 15:57
0
I'm getting the url using PHPickerViewControllerDelegate. I've confirmed that my url has properly feed into the code but when i play the video node, no video is displayed and i dont hear any sound,...
Illyes asked 16/4, 2021 at 13:44
2
Solved
Is there a way to have particles spawn with a random per particle colour based on the current "Color Ramp"? The particles do not change colour over their lifespan, they are simply assigned a colour...
Vergos asked 6/11, 2013 at 13:22
4
Solved
I did a small test project using the "Hello World" Sprite-kit template where there is an atlas animation composed by these frames:
-
I want to show this knight and it's animation.
I want to set...
Mounts asked 22/12, 2016 at 21:51
2
Solved
I have a bare-bones project created in Xcode as a SpriteKit/GameScene app. I want to set the window size programmatically. I've read a lot of answers here, and several tutorials elsewhere, but none...
Hebetude asked 6/11, 2018 at 23:34
4
Solved
I want to use UI testing for a game using SKSpriteKit.
As my first tries did not work I wonder if it possible to use Xcode UI Testing with SpriteKit.
Iridectomy asked 15/12, 2015 at 15:51
© 2022 - 2024 — McMap. All rights reserved.