Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Build a Game with Sprite Kit Actions and Animations Shooting Projectiles using SKAction: Part 2

What is the point

What is the point of the yellow position Amit Bijlani, could calculating that position have been avoided by simply giving the projectile a lifespan of say 2 seconds? Meaning after the time ran out, it would be removed.

I know there would be a little more nodes at any one time compared to your method but I don’t think it would have that much of an affect on the FPS.

By doing this newcomers to iOS wouldn’t be put off/ confused by the math. Im not saying I have a problem with it, it reminds me of math class which I enjoyed but it just feels overkill for this game.

Other than that, love the tutorials so far.