I wrote that I won’t be posting anymore errors on this forum, but I changed my mind. I am stuck on chapter 13 page 367. I build the game to see the bugs animate with the array of animation in Bug.swift.
I copied the code exactly how it is written in the book and am getting a fatal error PestControl[2710:687445] Fatal error: Index out of range
this line is getting the RED bar with the words Thread 1:Fatal error: Index out of range :
— run(animations[direction.rawValue], withKey: “animation”) –
when I comment out that line, I see the bug animations after I build it, but just for the front walk animation for the bug, and not for the back or sideway walk animation.