Skip to main content

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
1 answer
540 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 ...
iGetIt's user avatar
  • 141
3 votes
0 answers
310 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 ...
Fadi's user avatar
  • 131
2 votes
1 answer
816 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 ...
JoeBob123's user avatar
1 vote
0 answers
47 views

How can I remove sprites when they are outside viewport, but then add them again if I return to their location to save memory

I'm creating an open-world RPG like Neverwinter nights. But I’m worried about memory and am afraid if I just populate a huge world with physics based sprite nodes, I won't have any memory for anything ...
Mugs's user avatar
  • 111
1 vote
0 answers
411 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 ...
Sasha Nodia's user avatar
1 vote
0 answers
393 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 ...
WokerHead's user avatar
  • 111
1 vote
0 answers
245 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, ...
naivedeveloper's user avatar
1 vote
0 answers
79 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 ...
Christian Kreiter's user avatar
1 vote
0 answers
456 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 = ...
PlugInBoy's user avatar
  • 111
1 vote
0 answers
237 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 ...
Christian Benincasa's user avatar
0 votes
0 answers
21 views

SKNodes in a grid configuration get out of place after falling to fill gaps

I am making a “simple” game where the user will “pop” blocks by tapping on “clusters” of blocks. When the user taps it destroys the “cluster” of blocks, the other blocks move down to fill in the ...
jforward5's user avatar
0 votes
0 answers
96 views

How to run skactions randomly

Hey guys I need some help I have 2 SkActions. ...
WHY25's user avatar
  • 11
0 votes
0 answers
51 views

Advice on how to organise the levels in a game

I'm thinking of building a 2D platformer game similar to Super Mario Bros, but I'm in the planning process and realised I don't really have a good way of storing information about each level – where ...
Frævik's user avatar
0 votes
0 answers
63 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 ...
elektricni's user avatar
0 votes
0 answers
116 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 ...
Ryan Heitner's user avatar
0 votes
0 answers
133 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 ...
Eyeball's user avatar
  • 101
0 votes
1 answer
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 ...
PoKoBros's user avatar
  • 103
-1 votes
2 answers
785 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://...
Confused's user avatar
  • 183
-1 votes
1 answer
608 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 { <...
Metman's user avatar
  • 101