I am making a 2D Platformer game in order to familiarize myself with Javascript and Unity(I am fairly new at this). I would like my player to respawn after going past a certain y value. How would I do this?
1 Answer
1With the given information it should be as simple as this:
if(transform.position.y > yourMaxValue)
RespawnPlayer();