Gaps In ground

Hello there,

I am creating a repetitive typical running game where there is a scrolling background and ground and I was simply wondering how would I go about creating gaps in the ground of the game, I think I would most probably create a black image, overlay it over the ground and if the player collides with it the character will fall. However I do not know how I would go about doing this, I would do a collision event however that means the character would fall through the ground aswell when colliding with the black image.

Many Thanks

James

hmm to be honest this is not what most endless runners do, as there will be no vary in height abd therefore very boring, instead many use a set number of blocks which move and then recyle thus creating the illusion that the player is running

hmm to be honest this is not what most endless runners do, as there will be no vary in height abd therefore very boring, instead many use a set number of blocks which move and then recyle thus creating the illusion that the player is running