Running game scores



Im working on a running endless game and i want to place the scores somewhere on the top of the screen in the way that when my screen move it always stays there. I also wanted some help in counting the scores. How can i count the scores in a way for example if my obj moves 50px right the scores increase by 1.
draw the text in the "draw gui" event.

use the following to set the score based on how far the player have moved horezontaly:
score = floor(x/50)


Just a heads up, in (most) endless running games, the player doesn't move on the x axis, only up and down, it's the items that they dodge / collect that move. Other wise you would need an endlessly large room, which isn't practical or possible.

You can set an alarm to increase the score by one, based off the speed of the moving items.
Last edited: