Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Game with Sprite Kit Particle Systems and Keeping Score HUD or Heads Up Display

J R
J R
2,037 Points

headCat Position and hudPosition diferences? explanation.

I don't have very clear something: If we are giving a position to catHead and also a position to lifeBar why do we need to give a position to the hud in the gamePlay scene as well? I understand the catHead and lifeBar are inside the hudNode so they need a position inside the hudNode and the hudNode a position on stage. Am I correct? but then why when giving a position to catHead he talks about a position on the screen an not a position of the catHead inside the hudNode? can somebody explain further for me how all this positions work together?