def scrollingright(text,size,vpos,color,speed):
    global textposh
    pu.drawtext(text,size,(textposh,vpos),color)
    if textposh < 1024:
        textposh = textposh + speed
    else:
        textposh = -100
def scrollingdown(text,size,hpos,color,speed):
    global textposv
    pu.drawtext(text,size,(hpos,textposv),color)
    if textposv < 650:
        textposv = textposv + speed
    else:
        textposv = 100