I am making a variation of flappy bird, but I wish to implement a system that you gain a little bit of speed for each pipe you get through, and lose speed if you hit a pipe, eventually to be caught by something if you lose enough speed. I have no idea where to start with this process, so help is greatly appreciated.