I have checked this with the example answer and I cannot see what I did wrong. I need another pair of eyes to help me!
There is the link to what I currently have.
I have checked this with the example answer and I cannot see what I did wrong. I need another pair of eyes to help me!
There is the link to what I currently have.
on line 76 you were testing this line of code
if (fly < -30) {
unforunately an object comparison against a number type will always be false instead i suggest something like this
if (fly.x < -30) {
in which tests for the coordinate responsible for making the sprite go offscreen
hope this helps