Sprite Lab Functions transferring values

#1

In the introduction to Sprite Lab, Lesson 38, they have a function written that transfers values from the main program to the function. Has anyone figured out how to do this? This is so powerful and I would love to teach it to my students.