How to create a "floor generator" similar to the game falldown?

How can I create a function that would generate floors similar to the game falldown? I already have a function that generates the random floors but I can’t figured out how to make them go up and disappear once they hit the top of the screen. Can anyone help me with this?

This is link to the game just so you know what game I’m talking about

https://itunes.apple.com/us/app/falldown!/id323493586?mt=8

There are multiple ways you could go about doing this.

One is, assuming the speed is exactly the same in a level (I haven’t played that game before), than you can just set a timer to remove a floor 10 seconds after it was first created for example.

Second would be to check for the position of the floor, for example if floor.y < -50 then floor:removeSelf()

Third would be to create a barrier that once the floor touches it gets removed. I’d suggest going with the first if the speed doesnt vary for the floors, if it varies in different levels thats fine but it can’t speed up or down during a level. If you can’t do option one I’d go with the third option

There are multiple ways you could go about doing this.

One is, assuming the speed is exactly the same in a level (I haven’t played that game before), than you can just set a timer to remove a floor 10 seconds after it was first created for example.

Second would be to check for the position of the floor, for example if floor.y < -50 then floor:removeSelf()

Third would be to create a barrier that once the floor touches it gets removed. I’d suggest going with the first if the speed doesnt vary for the floors, if it varies in different levels thats fine but it can’t speed up or down during a level. If you can’t do option one I’d go with the third option