In my 2D platformer game, how would I create a height marker?,

In the game, the player must progress up a very dangerous tower in which they are constantly being brought back to the beginning by death. I was planning on creating a height marker to display how far the player has reached in the run, with no luck.,In the game, the player has to travel up a tower in which it is very easy to die and restart at the beginning. I was planning on making a marker to display how far the player has gone up in the run, but with no luck.

If the player starts at y 0 then you should be able to just use the y position.
If the player however starts above or under y 0, then just add/subtract the y position in which the player starts.