Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [spritekit]

Sprite Kit is a 2D rendering engine from Apple for iOS and OS X games. It provides rendering and animation for sprites, basic sound playback support and physics simulation.

19 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
338 views

How to determine the angular velocity needed move an object to a given position

I am trying to move two lines joint to a fixed position sprite in a way similar to that of a pendulum. I would like the lines to swing from end to end each time. The image below shows what I want to ...
3
votes
0answers
266 views

How could I achieve an iOS high detailed level design for a platformer?

I'm seeing a lot of games that use a predefined and repeating set of tiles for their level (like FlappyBird or the Super Mario game series). I'm a graphics designer so I would like to create levels ...
2
votes
1answer
542 views

Showing keyboard on SKScene and performing action on a sprite node based on key tapped

I am trying to learn SpriteKit and play with some simple sample apps. Currently I am trying to achieve below things: Show keyboard over SKScene If user taps 'A', perform some action on a sprite ...
1
vote
1answer
304 views

calculating the trajectory of an object in SpriteKit when an impulse is applied to it

I want to make a trajectory line of little balls of where the object is going to go after an impulse, sort of like what is in Angry Birds. I did some research and it seems that the physics in ...
1
vote
0answers
294 views

One SKSpriteNode with multiple PhysicsBodies?

I am making a game similar to Lunar Lander, when you land with your ship on different objects, etc... The issue I am having is that I have a Player SKSpriteNode (my Ship) with a slightly complex ...
1
vote
0answers
287 views

Swift Spritekit: Create realistic driving sprite

How would I go by creating a realistic driving experience? I'm using iOS Swift 3 with SpriteKit using the functions applyForce to accelerate when I click the gas button and when braking I add ...
1
vote
0answers
208 views

How do I simulate vehicle movement in a non-gravity environment (e.g., space)?

As a series of small experiments, I've began to tinker with game development, specifically using SpriteKit and Swift. I'm looking to simulate a body moving through a non-gravity environment, ...
1
vote
0answers
60 views

SpriteKit Obj-C – How to add a force on a node a certain distance according to screen size

I have an SKSpriteNode that I'm trying to throw up to a certain point on the screen. I've tried applying an impulse and/or force according to the screen size, but that has strange results. I've also ...
1
vote
0answers
421 views

Orientation of SKNode in followPath Swift

I'm developing a game like price wheel where I need to touch the correct answer. For now I find replies where people says: Set yScale of SKNode to -1. Or Set xScale of SKSpriteNode to xScale = ...
1
vote
0answers
189 views

Efficiently rendering tiled map on OS X

I'm writing an original (top-down) SimCity clone in Swift and attempting to use SpriteKit as the basis for the game. However, I am running into performance issues when rendering and animating the tile ...
0
votes
0answers
23 views

How to match user drawing with predefined drawing model?

i am trying to develop image recognition iOS app , i will have one reference image , and user has to draw something one screen and when user release finger , then i will convert his drawing into <...
0
votes
0answers
36 views

Move SKEmitterNode along with the trail that it creates

In Swift in SpriteKit, I have a SKEmitterNode that I have set up to make trails following the player. I have the target set to self, the scene so that it will make these trails when moved. I would ...
0
votes
1answer
126 views

Swift Error “unrecognized selector sent to instance 0x7f96875356e0”

This is the function i am trying to spawn obstacles in my game ...
0
votes
0answers
21 views

How to calculate falling speed in spritekit?

Is there a way to calculate falling speed based on physics body settings, instead of waiting it to fall and getting velocity? I would like to find what time it takes for object to fall from defined ...
0
votes
0answers
42 views

libgdx onto existing IOS and Android App, Feasiblity and App Size

I am an IOS developer, my client has an existing app which they want to add some simple microgames onto. The main requirement is that the app size footprint is as small as possible. I suggested that ...
0
votes
0answers
122 views

Using Tile Maps with cocos2d - how do I handle a large amount of images?

I am building a game where the users (players) can build their own town. There they can build houses, add furniture to the houses etc etc. Basically similar to The Sims. I am using the Tiled Map ...
0
votes
1answer
2k views

Switching bezierpath to follow SpriteKit swift

I am trying to make it so that a SKShapeNode follows a UIBezierPath. Then when the screen is tapped it switches to another UIBezierPath to follow. I have this functionality working except that when ...
-1
votes
2answers
542 views

Unity equivalent to cocos2D (and Sprite Kit) Actions?

Does Unity have an equivalent to the Actions feature/functionality of cocos2D and Sprite Kit; if so, what is it? cocos2D Actions: http://python.cocos2d.org/doc/programming_guide/actions.html http://...
-1
votes
1answer
497 views

Fix buttons on screen

I've added buttons and SKCameraNode for my player. I got problem. When player moving left/right/jump all buttons dont follow for him. UPDATE class GameScene: SKScene, SKPhysicsContactDelegate { <...