Protip: You should rename A1 and A2 to be more descriptive of their purpose. In other words, if they're coordinates, you should name them something like AX and AY. Also, if you mean an easier way to modify the Y-coordinate when jumping, you can aid yourself with a bit of physics. I'm not sure, but I think most schools start teaching free fall physics at around 10th grade.