[solved] Adding a random number of elements in my experiment
In my experiment I have 6 empty squares circled around the center of the screen. I want to sequentially add dots to them, randomly. The starting position should be random and the end position should be random. How can I achieve this using OpenSesame? It's my first time making an experiment in this program, I have tried to use for loops and random variables in both 'Sketchpad' and 'Inline script'. Unfortunately, 'Inline script' does not support drawing elements and 'Sketchpad' does not support random variables and/or drawing in sequences. I think 'loops' should be used to achieve the effect that I want, but I am unable to figure out the specifics.
Comments
Hi,
You'll probably want to draw your stimuli in an
inline_script, using thecanvasobject. (inline_scripts do support drawing!) To do this, you'll need to know a bit of Python though:To get you started, here's a short snippet that shows how you can draw an array of circles:
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Thanks Sebastian, very helpful.
I added 'self.sleep(1000)' to your sample to make it show a bit longer