Can’t touch this!

cant-touch-this
Handling touch events in SpriteKit is not as trivial as one might expect. Especially when two or more nodes are on top of each other. Which node will receive the touch event? In this article I will explain how touch events are handled and that this can lead to unexpected behaviour.

Read More

Outline text in SpriteKit

OutlinedText
I don’t know why, but there is no easy way to outline text in SpriteKit. You should expect SKLabelNode to have properties like strokeColor and strokeWidth. But as of this writing you don’t have a lot of options to customize SKLabelNode. Eventually Apple’s Core Text API, SKShapeNode and a little bit of magic did the trick.

Read More