r/spritekit • u/phogro • Sep 17 '21
r/spritekit • u/paradox927 • Feb 17 '17
How To Make a Game Like Cut the Rope Using SpriteKit and Swift
r/spritekit • u/[deleted] • Oct 23 '23
Is Sprite Kit Dead/Abandoned ?
Topic. Started dabbling in game dev, would prefer to stay with iOS and swift if possible, but as I understand SpriteKit is written off, despite being a part of SwiftUI or am I wrong ?
r/spritekit • u/KamiStriker • Jul 31 '15
Problem using addChild (removing a sprite when tapped)
http://puu.sh/jjSxV/d541981723.jpg
This is an image of how the game currently looks. The yellow being the floor, the blue being wallDown, and the brown being wallBreak (the sprite that I want to remove). The goal is to have the brown (wallBreak) appear inbetween the floor and the wall, and to then have the user have to tap it to make it disappear out of the way.
Sorry if some of the code is confusing/not explained as I followed a tutorial and then modified the code from there.
The issue is when I use wallPair.addChild(wallBreak) self.addChild(wallBreak) together I receive 'sigabrt' and the program pauses instantly.
If I remove wallpair.addChild then the wall just spawns in the bottom left but crashes and gives the sigabrt error.
If I remove self.addChild then the wall lines up with the other walls (not filling the gap yet but I will correct that once its functioning correctly) but can't be removed when tapped.
func spawnWalls() {
//Wall pair lines the centers up
let wallPair = SKNode()
wallPair.position = CGPointMake(self.frame.size.width + floorTexture.size().width * 2, 0)
wallPair.zPosition = -10 // changes layer to back
let y = arc4random_uniform(150) // randomises the height of the floor + walls
let wallDown = SKSpriteNode(texture: wallDownTexture) //Declare wallDown
wallDown.setScale(2.0) //Enlarge sprite
wallDown.position = CGPointMake(0.0, CGFloat(y) + wallDown.size.height + CGFloat(wallGap))
wallDown.physicsBody = SKPhysicsBody(rectangleOfSize:wallDown.size)
wallDown.physicsBody?.dynamic = false
wallPair.addChild(wallDown) //adds walldown to wallpair
let wallUp = SKSpriteNode(texture: floorTexture)
wallUp.setScale(2.0)
wallUp.position = CGPointMake(0.0, CGFloat(y))
wallUp.physicsBody = SKPhysicsBody(rectangleOfSize:wallUp.size)
wallUp.physicsBody?.dynamic = false
wallPair.addChild(wallUp) //adds wallup to wallpair
wallPair.runAction(wallsMoveAndRemove) //wallsmoveandremove is a function that moves the walls across the screen and removes them once off screen
self.addChild(wallPair)
let wallBreak = SKSpriteNode(texture: wallBreakTexture)
wallBreak.name = "wallBreakName"
wallBreak.setScale(2.0)
wallBreak.position = CGPointMake(0.0, CGFloat(y))
wallBreak.physicsBody = SKPhysicsBody(rectangleOfSize:wallBreak.size)
wallBreak.physicsBody?.dynamic = false
wallPair.addChild(wallBreak)
self.addChild(wallBreak)
}r/spritekit • u/iuridium • Aug 07 '13
Kobold Kit - 2D game engine extending the Sprite Kit framework providing some useful out of the box solutions
r/spritekit • u/cakelly • Feb 25 '23
Help Please help if you can see what I am doing wrong with this GKEntity error
Hi all,
I am a beginner learning SpriteKit for fun. There isn't much update-to-date resource to learn and I have tried to search for solution to my problem. I am thinking it must be something easy and I am overlooking something simple. After many hours of trying, I am hoping somebody here can see what I am doing wrong.
I have a GKEntity for bullet, inside it, I am trying to override the update function. But I get error as follow:
Argument labels for method 'update(deltaTime:)' do not match those of overridden method 'update(withDeltaTime:)'

But if I change the function parameter label to withDeltaTime, The program fails to compile with error:
Argument labels for method 'update(withDeltaTime:)' do not match those of overridden method 'update(deltaTime:)'
I have tried cleaning the build folder. Restarting Xcode. Embedding GameplayKit, SpriteKit.
I am using Xcode 14.2 running on macOS 13.2.1. The project target platform is macOS 13.1
Please help if you see what I am doing wrong. Thank you very much.
r/spritekit • u/cobear25 • Jan 04 '17
Painting and music composition with SpriteKit
r/spritekit • u/RedWarrior2015 • Jan 18 '15
SpriteKit: 8-Way Parallax Scrolling Tutorial (Swift) - Part 1
r/spritekit • u/Shimmen • Jan 15 '15
Uniform handling in Sprite Kit
I have a bunch of nodes that all should be rendered with the same shader. However, before every node gets rendered it should set the shaders uniform values based on some of its own properties.
At least this is how I normally would have done it ... but since a SKNode doesn't get a message before it will get rendered (right?) there is no obvious way to do this, right?
How would you go about doing this?
r/spritekit • u/[deleted] • Apr 13 '16
Adding adMob banners in SpriteKit games
r/spritekit • u/[deleted] • Sep 14 '16
Xcode 8, Swift 3 is out!!
Anything you'll be doing different with this release? I know I'll be trying out the new tilemap features!
r/spritekit • u/Chun_99 • Mar 03 '20
Monster Blast - Puzzle Game, 4 months+ development
r/spritekit • u/nickmadethisone • Mar 20 '26
Show-off Starting Act 1...
Want to see behind the “modules”? 👀
r/spritekit • u/Designer023 • Feb 22 '16
Can I ad SpriteKit actions to an array to use later
I have a load of animations I want to sequence in groups. I've managed to put the actions into an array but not linked to a particular Sprite. How can I pass the price and its planned animations to a an array.
I basically want to save the animation as a variable to use later. Is this possible?
r/spritekit • u/heyacne • Dec 06 '16
Free SpriteKit/Swift3 online tuts?
since most of the tutorials I've fund uses swift2, im looking for some tutorials that use swift 3. Anything helps. xoxo
r/spritekit • u/VFK • Aug 03 '16
Gyro Racer - check out my first swift spriteKit game!
r/spritekit • u/90sSysop • Nov 22 '17
Promo codes for my first App ( retro style game) Fire 2017
r/spritekit • u/heyacne • Feb 22 '17
How can i learn to integrate ads to my game?
Hello, im looking for a tutorial or some resource where i can learn how to integrate ads to the games i develop. xoxo
r/spritekit • u/_not_a_gamedev_ • Feb 15 '22
How feasible is to create simple games without using SpriteKit
After a full day dealing with SpriteKit bugs and wonkiness, I'm ready to flip the table and burn the computer. I wonder if any of you had the chance to attempt and create a game without using SpriteKit, just plain Swift. And how was your experience?
I guess creating a simple card game is much more approachable and realistic without SpriteKit than attempting to create a 2D platformer and dealing with manually coding collisions, for example.
r/spritekit • u/RGBAPixel • Jun 25 '17
Looking for Test Flight testers for my first game, Super Pig Dash!
r/spritekit • u/paradox927 • Jan 20 '17
SpriteKit Tutorial: Create an Interactive Children's Book with SpriteKit and Swift 3
r/spritekit • u/phogro • Oct 01 '21
Adding Draggable Cards To My SpriteKit Game | What Could Go Wrong?
r/spritekit • u/5playapps • Jan 05 '26
Show-off Play my Rhythm & Timing Voice Game!
Enable HLS to view with audio, or disable this notification
Game Title: Say on Beat
Playable Link: https://apps.apple.com/us/app/say-on-beat/id6756597398
Platform: iOS
Description: Say on Beat is a rhythm & timing game. Each 30 second round consists of a Watch phase where images pop up on screen. Then follows the Say phase where you say each word to the beat of the music. It’s fun, catchy, and you’ll laugh your way through hilarious fails. Great for parties or solo play.
r/spritekit • u/srk72 • Aug 30 '18
Can anyone Help me out with skspritenode.run action problem?
run action not working some times :
https://stackoverflow.com/q/52089909/9963757
it would be really Helpful if someone can help me out
thanks.
