Hello, so I have this thing I'm making and where every time you click on a screen a new gif pops out. However, when I run it nothing appears on the new screen when I click.

This is what I have so far
Code:
import glob
ypos = 0
xpos = 0
robotArmy = []

def setup():
    global ypos
    size(700,700)
    ypos = height * 0.25
    frameRate(12)
    global animation1
...