import Rasterizer import GameLogic from threading import Thread from random import random from time import sleep # COMPARE THE OUTPUT OF REPEATED RUNS OF THIS PROGRAM def drop(): sleep(0.01) cont = GameLogic.getCurrentController() obj = cont.getOwner() sep = "game" num = str(obj.counter)[1:] filename = sep+num Rasterizer.makeScreenshot(filename) obj.counter += 1 thr1 = Thread(target=drop, args=("+",)) thr2 = Thread(target=drop, args=("-",)) thr1.start() thr2.start() drop() #sleep(3.0)