I’m new to unity and have recently started making my endless platformer game. In this game, the objective is to stay in the view of the moving camera, if you go off screen, you die. How do I make it so that the 2D terrain is endlessly and randomly generated and so that the player dies when he hits the edge of the screen? Thanks.
That’s two very different questions. The first one is somewhat simpler. When the player coordinates no longer fall in the viewport, kill the player. Write a function called from update to check.
The other, making a random generated endless 2d langscape, that’s a complete project work of a question. I suggest trying a few things and then ask if you run into a particular problem.