Constantly moving forward whilst being able to jump

Im tying to make a game like Geometry dash or The impossible game but I cant figure out the code for constantly moving forwards

Hi!

To move an object constantly, you need to increase the value of one of his axis (X, Y or Z) over Time.

I think these links can help you: