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.

Filter by
Sorted by
Tagged with
8 votes
1 answer
4k views

I'm working on a Sprite Kit game. I'd like to make it a true multiplayer game, by which I mean that each person joining the game has their own camera. I've seen tutorials on multiplayer games where ...
Abdul Ahmad's user avatar
1 vote
1 answer
103 views

I am creating a music-based app for one of the courses I teach at a high school, so it's not for sale in the app store, it's only for my students to use. I decided to make it keyboard only partially ...
02fentym's user avatar
  • 147
0 votes
1 answer
1k views

I am creating a virtual gamepad for my game, It has one main SKSpriteNode with circle image and four child node(up, down, left, right) with image. When I am using default size for all it looks perfect ...
Varun Naharia's user avatar
1 vote
2 answers
364 views

Scenario: I have a game with several game objects on screen. Each can have different score and hitpoints. When I use collision detection for cannonball vs. ship (example) I need to know which ship is ...
Jurik's user avatar
  • 597
0 votes
1 answer
111 views

I really like the effect that I see in this video of Mario Party 10 Jewel Drop (at 2:40). It occurs when the four green orbs join together. You'll see a four items with long trails move to the top ...
02fentym's user avatar
  • 147
0 votes
1 answer
1k views

Is it possible to detect contact with every frame change when using an animation in SpriteKit? For example, if I have two nodes of a person walking, I want to detect contact with the ground each time ...
Bennybear's user avatar
  • 125
0 votes
1 answer
778 views

I want to choose from 4 enemies using random and present it on scene. For that purpose I've made this: ...
TimurTest's user avatar
1 vote
1 answer
3k views

So basically I've got 2 types of balls and 2 types of enemies. Green can delete red only, red can hit delete only. Here's what I have for the first collision test: ...
Barkley's user avatar
  • 121
1 vote
0 answers
466 views

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
3 votes
1 answer
259 views

I am using Sprite Kit to do game development. I would like like to design an archery with arrow. Should I use the arrow as one of the node? If so, it is a concern to have too many arrow on the screen, ...
Ted Wong's user avatar
  • 133
3 votes
1 answer
1k views

I've created a SpriteKit Mac OS X app and I am using a simple finite state machine to manage the game states. I've seen some solutions, especially for C++ games, where a GameState class and a ...
02fentym's user avatar
  • 147
0 votes
1 answer
820 views

I've been trying to figure this out exhaustively for the past few days and still haven't found an answer. I have an endless runner built using swift where the character is fixed and the terrain moves ...
tedesignz's user avatar
0 votes
1 answer
161 views

I've been trying draw level segments for an iOS endless runner using 2d elements that repeat forever. I have a class that generates a random 2d array, then scene elements are drawn and animated to ...
tedesignz's user avatar
0 votes
1 answer
110 views

The following code is what I'm working on to animate characters in a SK scene class. I can run the code without building, no problem, but I can't build it and run it; I get one error message: Binary ...
Bennybear's user avatar
  • 125
4 votes
1 answer
4k views

I'm wondering if there is a way in spritekit to implement water flowing through a path? like this water flow Right now I'm generating the path using UIBezierPath and PaintCode Any suggestion? ...
Mariam's user avatar
  • 163
2 votes
2 answers
690 views

Recently I started working on a game with the spritekit engine. My question is not about spritekit in specific though, but generally about game engines. When I write a loop and run it (eg ...
Mahdi Amrollahi's user avatar
10 votes
2 answers
3k views

I am currently working on an iOS project called Old Frank that I have been trying to follow a MVC design pattern. The gist of it is. ...
Skyler Lauren's user avatar
1 vote
1 answer
329 views

I am trying to launch my ball sprite towards the middle of the screen at the same speed every time I launch it. ...
FryDay's user avatar
  • 131
2 votes
2 answers
501 views

I have a entity called Item, and every item can have two or three bonuses... What would be a good model design in this situation. I can think of something like: To have many optional attributes ...
Whirlwind's user avatar
  • 123
1 vote
0 answers
252 views

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
1 vote
2 answers
384 views

the result of the angle between my touch and the middle,bottom of the screen gives me 180 when the touch is on the right side of the screen, and 0 when it is on the left. I don't understand why... <...
Paul's user avatar
  • 679
1 vote
1 answer
169 views

I am writing a game in which I am representing a velocity with a vector. I have a starting point and a point that I want the object to move towards at a certain speed. (I need the resulting vector's x ...
FryDay's user avatar
  • 131
0 votes
2 answers
288 views

Would you know how to create a dash line that moves towards the direction of the target, and if it collides with a wall, goes to the opposite angle? I have seen atan2 but I am not sure what it does, ...
Paul's user avatar
  • 679
0 votes
1 answer
2k views

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
3 votes
3 answers
1k views

There's a great question here that helps me a little bit in what I want to do, and it explains it quite well: How To Approach 360 Degree Snake Basically, I want to have a smooth 360-degrees Snake ...
Codecat's user avatar
  • 133
1 vote
1 answer
738 views

I'm trying to create a map of touchable hexagons and the playing area would be like in Catan game. I would like to use Sprite Kit to do the job but is it cabable of doing that? Process goes like ...
andyr's user avatar
  • 113
0 votes
1 answer
220 views

I'm developing an application for iPhone with a screen where the user will track his progress. Something like so, as seen in the Two Dots game: Currently I plan on creating this using constraints and ...
Anil's user avatar
  • 121
0 votes
1 answer
863 views

I've started trying a few things with Sprite Kit for Game Development. I was creating a brick breaking game. So I've run into a issue on how to randomize the initial starting direction of the ball. I ...
Jash Jacob's user avatar
0 votes
1 answer
423 views

Please bear with me as I've been spending some time lately trying to get a better grasp of some game dev fundamentals. My specific issue is a direct result of trying to apply what I've read about here:...
Manny's user avatar
  • 101
0 votes
0 answers
153 views

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
2 votes
1 answer
819 views

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 node,...
Devarshi's user avatar
  • 121
8 votes
2 answers
14k views

I have a background of a given size and filled with a given color. I want to change it with an animation effect, starting from the center and spread out until it extends the whole background. The new ...
Simon Kemper's user avatar
1 vote
1 answer
501 views

I was implementing Game Center into my app and all was going well except for the leaderboard done button not dismissing the leaderboard even with gameCenterControllerDidFinish added in. I call up the ...
FireStorm's user avatar
0 votes
1 answer
347 views

I am planning to place three cards on a view which I add to the background. However I wanted to combine two of the cards and replace the first card position with the new card position. Is there any ...
robert's user avatar
  • 1
3 votes
1 answer
2k views

I'm would like to achieve something like Object A will jump to position A in parabolic way. For example: I am able to make the object jump but i do not know how to calculate to make the object jump to ...
tekminewe's user avatar
  • 133
4 votes
1 answer
1k views

I'm working on making an RPG in Xcode, and I'm having a major gameplay issue when it comes to having my character swing his sword in a way that is realistic and gameplay compatible. Right now, when ...
jking14's user avatar
  • 97
1 vote
1 answer
831 views

So I am currently making a 1942-style game in Sprite Kit. I've reached the point where I am finished implementing pretty much everything (movement, shooting (also recognizing a hit and exploding an ...
user3545063's user avatar
4 votes
2 answers
4k views

I have a spike and a ball is falling down, when the ball touches the top point of the spike, I want to make the ball invisible, and when it touches on the other part i.e on the sides I don't want to ...
user654987's user avatar
2 votes
1 answer
3k views

This question builds upon the following question: How can I achieve a good fire effect with alpha blending and particles? I want to achieve the visual effect of using ...
Jean-Paul's user avatar
1 vote
1 answer
725 views

I'm looking to create a game like Dino Run, where I will need to create large slopes for a level, procedurally generated. How do I go about this? Do I have to make certain predefined pieces of level ...
Dvole's user avatar
  • 1,875
8 votes
2 answers
2k views

First of all, note that I want to understand the principle, so I would prefer explanations in plain english (but of course I have nothing against some code to complement these explanations). I am ...
Pop Flamingo's user avatar
5 votes
1 answer
5k views

I have a Sprite node with many 6 child nodes. Each are placed one after another in X-axis. I want to know the complete with of the Sksprite node. ...
user654987's user avatar
5 votes
3 answers
1k views

I would like to create a political map where each country is clickable by tapping but I'm not sure the best way to determine which nation was selected. Imagine Risk where each country can be ...
Vukovitch's user avatar
4 votes
2 answers
631 views

I have a ball bouncing around the screen. I can pick it up and drag it onto a "bucket". When my touches finish, I use the containsPoint function to check and see if I have dropped the ball onto the ...
Grant J's user avatar
  • 141
0 votes
1 answer
299 views

I've been using spritekit for a while for a few small games. One thing I've noticed is that spritekit is the first game framework I've used that allows me to apply move actions to physics bodies. (...
meganegora's user avatar
6 votes
1 answer
2k views

I'm developing a simple ball game in Sprite Kit. I need to predict the ball's trajectory, so I went back to my physics book for the equations for acceleration, time, speed and space. The problem is ...
Lorenzo Iannone's user avatar