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

I am building a sprite that I want to spin along an axis. I am using SpriteKit on iOS for this, but I'm sure that the question is not really tool specific. In my case, I have a sprite such as: and I ...
PKCLsoft's user avatar
  • 225
0 votes
1 answer
71 views

I am trying to make a very simple game that allows the user to tap on any "block" in the scene and "pop" it. If the block is blue and touching another blue block then both blocks ...
jforward5's user avatar
2 votes
1 answer
830 views

I'm migrating a 2D game I've been making using only SpriteKit to an ECS architecture using GameplayKit, and I'm still a bit clueless on how to achieve this. I think I got the gist of ECS, but yet, I'...
jalxp's user avatar
  • 123
0 votes
1 answer
566 views

I'm working on an iOS SpriteKit game and I'm currently designing some images to be used as character animations in Photoshop. There are many different iPhones with various screen sizes and resolutions,...
muZero's user avatar
  • 103
1 vote
1 answer
625 views

I've been working on a Mario Bros clone for the first level, trying to learn how to make games with SpriteKit. I'm trying to use an ...
Frakcool's user avatar
  • 111
1 vote
0 answers
65 views

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
0 votes
0 answers
68 views

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

I’ve set up a launch image in XCode and it does show up in the simulator, but on the Apple TV it just displays a blurry gray background. The image is the correct size and doesn’t have any transparency....
margusholland's user avatar
0 votes
0 answers
79 views

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
147 views

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

I'm writing a SpriteKit game in swift and making use of GameplayKit's entity-component system. There are many components that do different stuff but share the same methods in which they do it, so I ...
lsauceda's user avatar
  • 151
1 vote
1 answer
838 views

I'm looking for a way to simulate the forces created by wind and how it affects a boat. In a nutshell: if wind hits a boat (sailing yacht), the bow is aligning with the wind and if the wind is strong ...
Krumelur's user avatar
  • 299
2 votes
1 answer
899 views

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
0 votes
1 answer
148 views

I'm currently trying to build a little strategy game where players take control of countries on an world. Each player's countries are represented by having a different color background but as each ...
TommyBs's user avatar
  • 427
1 vote
1 answer
299 views

I'm making a SpriteKit game where two SpriteNodes are in a maze. That maze is represented as a grid. One sprite (A) travels faster than the other (B). Items randomly pop up, and the sprites have to ...
retrovius's user avatar
  • 117
5 votes
1 answer
1k views

In Apple's cocos-like 2D enginer, SpriteKit, they have what they call a custom field: ...
Fattie's user avatar
  • 150
0 votes
1 answer
1k views

I'm new to spritesheets and game development in general. I have two files: 1) a .png spritesheet with tons of sprites and 2) a companion XML file with coordinates, anchor points, image names, and ...
retrovius's user avatar
  • 117
1 vote
0 answers
433 views

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
420 views

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
1 answer
514 views

I'm trying to create a particular kind of effect for the background of my SpriteKit game, and I've found some shaders on shadertoy that are close to what I want, but I'm struggling to adapt them to do ...
Sam Woolf's user avatar
0 votes
1 answer
1k views

I decided to implement an isometric 2D game for iPhone, using SpriteKit and GameplayKit, and Inkscape/GIMP as graphic tools. I prefer vectorial graphics because as a iOS programmer I am required to ...
Ramy Al Zuhouri's user avatar
3 votes
1 answer
561 views

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
1 vote
1 answer
751 views

There seems to be a lot of posts about endlessly scrolling backgrounds on one axis, but not much for a 2-axis solution. As Josh Petrie suggested, I'm posting my approach as an answer to see if anyone ...
peacetype's user avatar
  • 145
1 vote
1 answer
1k views

SpriteKit supports tile maps as of iOS 10 and has a pretty powerful engine. Only, I am having trouble discovering if it is possible, and how to natively create, tile sets directly from a tileset image....
Alec O'Connor's user avatar
3 votes
1 answer
1k views

As the character in Chameleon Run runs, a water-like blur effect is created. I would really appreciate some guidelines on how I could create this effect in SpriteKit and Unity. Please see the image ...
Hilarious404's user avatar
1 vote
1 answer
2k views

I am trying to make a game where the Hero can move like in Pokemon with SKActions. But the movement looks unprofessional and have delays. How can we handle to move the Hero smoothly with SKActions ...
Lirf's user avatar
  • 15
1 vote
1 answer
571 views

As a newbie to iOS programming, I'm wondering which of these would be more conducive to the type of game I want to program. I've been tasked to program an iOS game for my company. They asked me to do ...
panzerblitzer's user avatar
0 votes
1 answer
164 views

This question is about the proper way to architect an implementation of Craig Reynolds Boids algorithm. I have an Agent object like this: ...
Alfie Hanssen's user avatar
2 votes
1 answer
288 views

I am trying to make simple game, but I have a problem. The node is too small. On iPhones with smaller screen size, the finger can't move it. On iPad and on simulator, however, the node can be moved ...
artG's user avatar
  • 21
3 votes
0 answers
337 views

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

I tried play with spritekit in isometric grid. But i can't understand how to fix level. ...
Rinat Mukhamedgaliev's user avatar
1 vote
1 answer
402 views

Basically, I am from a Swift SpriteKit background where UIScreen.mainScreen().bounds is a CGRect which represents the screen and can be manipulated in various ways ...
Jickery's user avatar
  • 35
4 votes
2 answers
684 views

I understand how the below DidBeginConact function works, but how do you detect which categories make contact when you have multiple colored bars (in the example code) or a friend category and enemy ...
user3715180's user avatar
0 votes
1 answer
156 views

How can I set the radius or the hit range of a node initialized with a texture? Of course I can do that with increasing the size of it, but actually I want to do this without resizing the picture ...
xdevx32's user avatar
  • 101
1 vote
0 answers
261 views

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 votes
2 answers
839 views

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
634 views

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
0 votes
1 answer
257 views

I want to make a 2D soccer game on iOS, I started with SpriteKit and got the ball physics working. Now, I could make the goal simple and static, but I'd love to make it make it elastic like a real ...
bjoern's user avatar
  • 3
1 vote
1 answer
355 views

I'm working on a tvOS game that uses the siri gamepad controller. Everything works fine the first time out. If the user loses the round I reload the same scene using presentScene. After reloading the ...
Wide Awake Games's user avatar
1 vote
0 answers
465 views

I am messing around with Game Maker in my free time. I learned some Java at school but never really understood the object oriented principles. When I got to know Game Maker I was surprised that game ...
user148013's user avatar
3 votes
1 answer
916 views

I was wondering how to make a Sprite do an orbit on a determinated point in SpriteKit. I tried to set the anchorPoint of the Sprite orbiting with the center point ...
Facundo Schiavoni's user avatar
1 vote
0 answers
85 views

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

I have some code in a project already, but I'd like to change it up a bit. Currently, my code creates an empty node called _buttonLayer and then create some buttons ...
Christian Kreiter's user avatar
5 votes
1 answer
1k views

Take a look at the image below from the game Warcraft 2. There's a darkened area (like a fog) that represents the limits of the 'field of view' -- to the effect that you would not see any enemy ...
eric's user avatar
  • 153
4 votes
2 answers
755 views

I have a tile map (isometric) and I have some police cars that they patrol all the time on the map, there is some building and other cars in map too so they are considered as constraints in my ...
Iman Rosstin's user avatar
1 vote
1 answer
1k views

I am trying to learn spritekit by working my way through developing a simple side scrolling game, but I cannot find a clear answer on how to move the hero through the level. The width of my ground ...
user4812000's user avatar
3 votes
1 answer
372 views

I am creating space game which has an effect similar to black hole's gravitational effect. Wherever the spaceship is going, the black hole will attract it, summing up all the vectors together. I know ...
Beraliv's user avatar
  • 131
2 votes
1 answer
1k views

I'm making a game in XCode using SpriteKit. The game has a player and different types of projectiles that he has to avoid. When the player collides with the projectiles, the score changes and the ...
Gabe12's user avatar
  • 121
3 votes
1 answer
2k views

I am trying to use physics in my game which is an isometric map based strategy game that the player deals with a city full of buildings, roads and people in it. I am writing the game with Swift and ...
Iman Rosstin's user avatar
1 vote
1 answer
857 views

I am trying to render some 3D model in blender and use them as a texture sprite in a game which uses Apple’s SpriteKit. I have an isometric map with tiles size : 32 as width and 24 as height, Since I ...
Iman Rosstin's user avatar