Comm.Dan
  • Comm.Dan
How to fix local functions that cannot reference themselves errors in Swift? The project is a SpriteKit game. I will post the code in a sub-post of this question
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
katieb
  • katieb
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
Comm.Dan
  • Comm.Dan
The code is in this picture that I have attached.
e.mccormick
  • e.mccormick
That looks like it would cause an infinite loop. While I do not know the language, I would say the solution would be for it not to be a local function and for it to have some system of preventing infinite recursion.
anonymous
  • anonymous
You may want to move your 5 makeBouncerAt() calls outside the definition of the function (outside the nearest { and }). Complete the definition of the makeBouncerAt function, ending with that } (the one after addChild(bouncer), then call it the 5 times. Also it doesn't look like that makeBouncerAt function has a meaningful definition, because I don't see anything using the "position" parameter. (Good luck! I'm staying with Objective-C for now)

Looking for something else?

Not the answer you are looking for? Search for more explanations.