Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 556 Bytes

File metadata and controls

6 lines (4 loc) · 556 Bytes

Help-with-Spritekit-position-and-anchorPoint

Spritekit nodes have position and anchorPoint CGPoint properties. I found the behaviour of these two properties confusing at first. Especially when adding multiple levels of children using SKNode’s addChild method. So here is a “cheat sheet” if you like, a visual helper that explains how it all works. If you’re as confused as I was then studying these examples should help.

http://www.garethelms.org/2014/06/help-with-spritekit-position-and-anchorpoint/