I have this code but it seems impossible for me to save the function to a variable with parameters and call it later on.
from scene import *
class MyScene (Scene):
def setup(self):
self.a = test(200,200)
def draw(self):
background(0, 0, 0)
test(100,100)
#how do I call self.a with its parameters
run(MyScene())
def test(x,y):
rect(x,y,20,20)
Test(100,100) works fine !
Re Peter