Sprite-kit Questions
Ad
SCNSceneRenderer stop after 12 frame
I create a simple scene with a cube and a floor for study propose. i set the delegate to self, but i can't understand why my render stop
Proportionally scaling UIPanGesture actions to zoom level in a SpriteKit scene
I have a spritekit scene in my ios app that makes use of both pan and pinch gestures - panning for moving the view of the scene's camera, and and
GameScene won't display correctly after transition from MainMenuScene in Swift
I'm making a game and at the moment i have a menuscene and a gamescene. if i play the gamescene on its own, everything is displaying correctly. if
Create a SKNode attracted to larger node via an SKFieldNode without moving the larger node
In my game, i have a larger sknode that uses an skfieldnode radial gravity field to attract other, smaller nodes towards it. this results in the
SpriteKit | Double hit Explosion Bug
I am currently working on the finishing touches of my space shooter. in this shooter you hit asteroids and when hit the an explosion animation is
Tilting Spaceship left and right in Spritekit
I have built a small space shooter game like so many other have already :-d and i got everything nailed down except for the tilting images of the
SKSpriteNode disappear in GameScene
I'm facing some problem with spritekit in swift. i was following closely to online tutorials (combining different tutorials into 1
Swift/SpriteKit - When to use multiple ViewControllers?
So this might be a stupid question, but i'm relatively new to swift and spritekit. what's the difference between using
Repeat function while touchesBegan in Swift 4
I am trying to make my bullet fire continuously while touching the screen. this is what i got so far, but it's not really working.
Fix error in Swift simd library (and missing documentation?)
I downloaded apple's
Ad
How can I create a finite, scrollable background in SpriteKit?
I'm looking to have a scrollable background in sprite kit. i've had a go with some of the
How do you update something in an SKAction while using repeat repeatForever?
As you'll see below, i'm trying to update the durationnumber, so that the colorswitch object turns faster. the
How to move from view controller to skscene
I want to present skscene from a uiviewcontroller in swift language, i'm developing a game in ios , the menu is a
BSP Dungeon Generator giving an unfixable error
I'm working on translating
UIScreen.main.bounds returning incorrect size
Uiscreen.main.bounds.width and uiscreen.main.bounds.height are both wrong. it's returning 414x736 but it should be about 360x640. device: iphone 8
How to use pinch gesture in game scene
I need your help guys. i have game scene and func which allow to move camera using pangesture. also i need pinchgesture to zoom in and out my
Moving SpriteKit Node with Touch Gestures only moves one point with each new touch
I have a spritekitnode that i want to move around my scene when i touch it and drag it. i have a touchesbegan method that
Swift and Sprite kit not touching properly
I am making a game with sprite kit where the user has tap balls that pass through the screen. the balls are spawned every 1 second. however, if
Is it possible to point class instance variables to `inout` parameters in Swift?
Is it possible for multiple class methods to access and modify a single inout parameter that is set in the class constructor? for example
How to make a button on startScene go to GameScene
I am looking to make a button that brings me from my startscene to my gamescene. everything i find is to have the transition happen when i click
How to create more SKScene in addition to GameScene
I tried to create a new subclass of skscene "mainscene" like the one apple created the gamescene. i want to create more scene in addition
Ad
How to create a separation between two SpriteKit objects
I have a circle and triangles inside and outside. i was looking through my character if it is not in a circle outside the circle touching
Could not cast value of type 'UIView' (0x112484eb0) to 'SKView' (0x111646718)
Could not cast value of type 'uiview' (0x112484eb0) to 'skview' (0x111646718). i keep on getting this error. can anyone help me because the line
Black screen with SpriteKit
I was following a tutorial on building a "pop the lock type" game and when i go to run it in the simulator a black screen shows up. i looked the
SpriteKit - Quick touches cause wrong behaviour
I am currently working at a sidescroller game, in which the jump height depends on how long the player presses the right half of the screen.
How to create an Isometric tile-map with 3D objects
So, i am building a basic tycoon game. in this game i want to have a simplex 3d generated tile-map that the player can build on. i need the
How to create a physics body for an SKSpriteNode with an interior in Sprite Kit (Swift)
I am currently making an ios game in which a ball must bounce within a frame defined by the below image:
swift spritekit how to run an action with a specified duration?
I'm trying to make my player change image once it detects collision with one of my game items and changes back after 0.3 seconds however, i dont
Showing Ads on Certain Scenes in Swift
I am making an ios game with spritekit and have just implemented admob (linked to firebase). however, after following the steps provided by google
iOS Collision Detection
I have tried and tried to get collision detection to work the way i need but to no avail. what i want to accomplish is to get notified when the
Swift And Spritekit sceneDidLoad being called more than one
I'm working with a simple game , i have menuscene : the user can choose the type of the game and gameplayscene . first time user choose
Call function after running an SKAction
In my spritekit game, i want to call a function after running an skaction. i am assuming it is possible to do with:
Ad
SKAction only runs after sleep or while running debugger
Using spritekit i'm trying to make a pause menu that animates (moves) off the screen when the player resumes the game. i create an
UIGestureRecognizer with selector being called from another class
I have two classes that both add a uipinchgesturerecognizer and use a selector to handle the code that responds to the gesture. note:
Spritekit - applying an acceleration to a physics body
I'm working on a project where i have a node affected by gravity. i would like to be able to apply a vertical acceleration to this node without
How do I randomise a repeatAction count?
I have a skaction that repeats forever that releases a random number of objects in a wave but i can't seems to find a way to randomise the count
Displaying a UIAlertController in GameScene (SpriteKit/Swift)
The simple way to display a uialertview, in swift is: let alert = uialertview() alert.title = "alert!" alert.message = "a wise
How do I save a UIColor with UserDefaults?
I'm trying to program my code so that if the user presses the night button the background will turn black and stay black if the user closes the
SpriteKit how to get correct screen size
I've tried self.frame.size self.view!.frame.size uiscreen.mainscreen().bounds.size none of them work.
Could not build Objective-C module CoreMotion error for tvOS target
I'm getting a couple of errors when creating my tvos target from my sprite kit ios game. the first is: could not build objective-c module
Score label in top left Corner for all devices
I’m new to programming and i recently did a tutorial that i found online to make a endless frogger game. the tutorial person didn’t show me
Collision between two objects
I have created a simple project but i have a problem in the collisions. it's simple (ball moving and vertical line) but didn't figure out
XCode Scene Editor or Coding for SpriteKit Games
Is it better to use the scene editor inside of xcode for spritekit games, or is it better to just programmatically create the game? most
Ad
how i can differentiate between a gesture and a touch in spriteKit and swift?
I have two functions, one is activated when i touch the scene and another one when i make a gesture down, but when i make a gesture the scene
How to mute AVAudioPlayer if music from another app is playing in spritekit
By default, i notice that in spritekit, if audio from another app is playing, it is automatically turned off and the audio in the app plays. how
Storing/ Accessing Large Amounts of Data in Swift
I've got a database with over 200k entries. i want to be able to access the database to determine whether various values exist within that
Ad
Blog Categories
Ad