I changed nothing except that the variable "xv" will get closer to 0 here is the piece of code I inserted change "xv" by ( 0 - "xv" / 20 )