Tag: SKPhysicsBody

The SlippyFlippy Challenge: Working With Sprite Kit Collision Detection

In our last installment, we ran into a problem trying to get collisions to work correctly with the obstacle. We want it to interact with the penguin, but not the game world. If we  turn on physics, either the edgeLoop on the scene  blocks the…

The SlippyFlippy Challenge: Make a Better Obstacle in Sprite Kit

Build a Better Obstacle In the SlippyFlippy challenge we have a small obstacle. In Flappy Bird there are two obstacles which the bird has to pass between.  Let’s change our current obstacle into a pass-through obstacle like Flappy Bird.   Make a Random Obstacle…

The Slippy Flippy Dare: How to Use Basic Physics in Sprite Kit

In the last installment of this series I showed two kinds of animation: SKAction and using the update: method from frame animation. The third major type of animation is using the physics engine. A physics engine takes the mathematical laws of physics and adds…