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.
0
votes
0answers
20 views
sprite kit xcode CGPoint
Hi I am a newbie in this sprite kit xcode.
So I am planning to place three cards on the view which I add them to the background. However I wanted to combine two of the cards and replace the first ...
2
votes
1answer
60 views
SpriteKit - How to jump to specific position?
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 ...
1
vote
0answers
88 views
UI rich Strategy/RPG UI - 2D Game Engine or UI Toolkit?
I'm on the fence regarding the graphics engine of my current game and hope for some advice.
This is an UI heavy strategy/rpg. Although the game is played on a (simple) 2D map, it is largely turn ...
0
votes
1answer
108 views
Swinging a sword in Xcode with Sprite Kit
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 ...
1
vote
1answer
121 views
How should I structure my code to add enemies?
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 ...
1
vote
2answers
118 views
How to detect collision on specific part of the sprite node
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 ...
-1
votes
1answer
57 views
SpriteKit - How to detect if no Collision hapened ?
So i'm making a platformer game think ( doodle jump - mega jump ) but in top down view, i'm not making the player go up, i want it to go forward. My problem is i can't detect if he jump and misses the ...
1
vote
1answer
171 views
iOS Sprite Kit - Blend Mode Effect
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 SKBlendModeAdd on a black layer, ...
0
votes
0answers
50 views
SpriteKit - Make a sprite move similar t another sprite
I'm making a type of a platformer ( think super mario but in a top-down view style ) game and i want my main character to move with the platform it has contact with.
So i used this:
...
0
votes
1answer
70 views
How do I procedurally generate level like in Dino Run, or Tiny Wings?
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 ...
6
votes
2answers
299 views
How can I make a character stand on slopes?
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 ...
0
votes
1answer
62 views
How to get the complete width of SKSpriteNode which has many child nodes
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.
SKSpriteNode *array = [SKSpriteNode node];
[array ...
3
votes
1answer
113 views
Approaches for a clickable map of nations (such as a Risk game) with Spritekit
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 ...
1
vote
1answer
69 views
Sprite Kit - containsPoint for SKPhysicsBody?
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 ...
0
votes
0answers
12 views
SpriteKit Random Movement/Action [duplicate]
So basically i want a sprite to start from a random position and head to a random direction then take a random turn halfway through using CGPathAddCurveToPoint.
The part i fail in is how to make it ...
0
votes
0answers
138 views
SpriteKit Random Action/Movement
So basically i want a sprite to start from a random position and head to a random direction then take a random turn halfway through using CGPathAddCurveToPoint.
The part i fail in is how to make it ...
0
votes
0answers
81 views
create cgpathref(s) from image?
I have been searching for a way to to take my paths (in blue below) and get a CGPathRef from them, there would be 3/6 paths created per tile. I heard something about using an Alpha but I was unsure ...
0
votes
0answers
31 views
How to calculate positions and randoms in scene. SpriteKit [duplicate]
So here is a code :
static inline CGFloat randomInRange(CGFloat low, CGFloat high) {
CGFloat value = arc4random_uniform(UINT32_MAX) / (CGFloat)UINT32_MAX;
return value * (high - low) +low;
}
...
0
votes
1answer
82 views
Mobile: Physics and movement actions
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. ...
2
votes
1answer
281 views
What units does Sprite Kit use for physics?
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 ...