All Questions
Tagged with sprite-kit or spritekit
96 questions
1
vote
2
answers
515
views
Rotating 2D sprite around tilted Y axis
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 ...
0
votes
1
answer
71
views
Grouping "touching" nodes of the same color together
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 ...
2
votes
1
answer
820
views
In an Entity-Component-System architecture how should my map be represented?
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'...
0
votes
1
answer
565
views
Choosing Number of Points and PPI Resolution To Future-Proof Game Images
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,...
1
vote
1
answer
623
views
How can I prevent the camera going out of bounds?
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 ...
1
vote
0
answers
64
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 ...
0
votes
0
answers
67
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 ...
2
votes
1
answer
58
views
tvOS game launch image shows on simulator but not on device
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....
0
votes
0
answers
71
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
0
answers
146
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 ...
2
votes
1
answer
374
views
Use GKEntity's component(ofType:) with inheritance
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 ...
1
vote
1
answer
836
views
Simulate wind affecting a boat using a 2D physics engine like Box2D or SpriteKit?
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 ...
2
votes
1
answer
894
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 ...
0
votes
1
answer
148
views
Breaking up a map so countries can be colored separately in Spritekit
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 ...
1
vote
1
answer
297
views
How can I make a sprite slow down to the speed of another sprite while following it?
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 ...