Yes, your solution was “working” but then the hurdle_down sprite was immediately placed randomly off the screen and couldn’t be seen.
Here is how I broke down the problem:
- Continue having hurdle randomly placed off the screen so it can scroll back in.
- If the runner isTouching the hurdle, Make hurdle_down visible=true at the same x & y of the runner.
- If hurdle_down animates off the screen, make its visible = false but return it to the position of the runner so when it appears again it is in the correct place.
Here is my solution. I think this is what were aiming for and I think the scoring still works as intended.