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
Zachary Walton
3,482 PointsEXC_BAD_ACCESS code GPFLT or code 1
I'm building a game based off flappy bird, using the game template and swift. When I first created the game, everything ran fine, no bugs (so it seems), no crashes. But, when the bird hit a barrier, I wanted the bird to smoke on his way down. I figured out how to add a particle emitter, and get the bird to smoke when it hits a barrier, and follows the bird until it hits the ground. Everything works good, until I hit the "OK" button on the showing score screen... and then the app crashes and i get the EXC_BAD_ACCESS code GPFLT or code: 1. Any ideas on what I could be doing wrong?
If I do;
targetNode = player , the smoke follows the bird, but is aimed to the right, but game works like its supposed too.
targetNode = self , the smoke follows the bird, and is aimed up like its supposed too, but game crashes.