Trying to figure out the best way to add my obstacle to an endless runner style game.
When I drop the obstacle it’s using the size of the display plus 100.
The problem is how do I drop another obstacle once I know my previous obstacle is on screen. At the moment if I add a random number to the equation I sometimes have one obstacle dropping onto another which isn’t good. How can I check whether my current obstacle is on screen (i.e obstacle.x is < display.contentWidth + 100). I’m also using storyboard if that is on any consequence.