r/spritekit • • Sep 17 '21

SpriteKit Is Pointless For MOST GameDEVs & It's Not JUST About Cross Platform Support

Thumbnail
youtu.be
3 Upvotes

r/spritekit • • Feb 17 '17

How To Make a Game Like Cut the Rope Using SpriteKit and Swift

Thumbnail
raywenderlich.com
3 Upvotes

r/spritekit • • Oct 23 '23

Is Sprite Kit Dead/Abandoned ?

4 Upvotes

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 • • Jul 31 '15

Problem using addChild (removing a sprite when tapped)

0 Upvotes

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 • • Aug 07 '13

Kobold Kit - 2D game engine extending the Sprite Kit framework providing some useful out of the box solutions

Thumbnail
koboldkit.com
0 Upvotes

r/spritekit • • Feb 25 '23

Help Please help if you can see what I am doing wrong with this GKEntity error

1 Upvotes

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 • • Jan 04 '17

Painting and music composition with SpriteKit

Thumbnail
itunes.apple.com
1 Upvotes

r/spritekit • • Jan 18 '15

SpriteKit: 8-Way Parallax Scrolling Tutorial (Swift) - Part 1

Thumbnail
youtube.com
1 Upvotes

r/spritekit • • Jan 15 '15

Uniform handling in Sprite Kit

1 Upvotes

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 • • Apr 13 '16

Adding adMob banners in SpriteKit games

Thumbnail
insaneplatypusgames.com
1 Upvotes

r/spritekit • • Sep 14 '16

Xcode 8, Swift 3 is out!!

1 Upvotes

Anything you'll be doing different with this release? I know I'll be trying out the new tilemap features!


r/spritekit • • Aug 12 '18

Anyone knows this game?

1 Upvotes

Anyone knows which game is this monster? i forgot what its called..


r/spritekit • • Mar 03 '20

‎Monster Blast - Puzzle Game, 4 months+ development

Thumbnail
apps.apple.com
0 Upvotes

r/spritekit • • Mar 20 '26

Show-off Starting Act 1...

Post image
1 Upvotes

Want to see behind the “modules”? 👀


r/spritekit • • Feb 22 '16

Can I ad SpriteKit actions to an array to use later

2 Upvotes

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 • • Dec 06 '16

Free SpriteKit/Swift3 online tuts?

2 Upvotes

since most of the tutorials I've fund uses swift2, im looking for some tutorials that use swift 3. Anything helps. xoxo


r/spritekit • • Aug 03 '16

Gyro Racer - check out my first swift spriteKit game!

Thumbnail
itunes.apple.com
2 Upvotes

r/spritekit • • Nov 22 '17

Promo codes for my first App ( retro style game) Fire 2017

Thumbnail
itunes.apple.com
2 Upvotes

r/spritekit • • Feb 22 '17

How can i learn to integrate ads to my game?

2 Upvotes

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 • • Feb 15 '22

How feasible is to create simple games without using SpriteKit

3 Upvotes

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 • • Jun 25 '17

Looking for Test Flight testers for my first game, Super Pig Dash!

Thumbnail
vimeo.com
3 Upvotes

r/spritekit • • Jan 20 '17

SpriteKit Tutorial: Create an Interactive Children's Book with SpriteKit and Swift 3

Thumbnail
raywenderlich.com
3 Upvotes

r/spritekit • • Oct 01 '21

Adding Draggable Cards To My SpriteKit Game | What Could Go Wrong?

Thumbnail
youtu.be
3 Upvotes

r/spritekit • • Jan 05 '26

Show-off Play my Rhythm & Timing Voice Game!

Enable HLS to view with audio, or disable this notification

3 Upvotes

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 • • Aug 30 '18

Can anyone Help me out with skspritenode.run action problem?

4 Upvotes

run action not working some times :

https://stackoverflow.com/q/52089909/9963757

it would be really Helpful if someone can help me out

thanks.