Computer controllered character jumping

how would I make my computer controller character jump after a ball
http://www.flowlab.io/game/play/225037

Try using procimity, filter greater than X, and so on