Programming coroutines
in OpenSesame
Dear OpenSesmae users,
I'm trying to figure out how to use coroutine using inline scripts and I'm having no success yet.
I'm trying to create an experiment in which participants need to move clock hands (on canvas) with right and left keyboard keys and to stop the procedure by pressing ENTER.
Unfortunately, I couldn't understand whether I need to create the inline scripts of the canvas and the keyboards within the inline_script of the coroutine and how.
I'll be grateful for any type of help.
Comments
Hi,
I wouldn't do this with coroutines. It's probably possible, but more trouble than it's worth. Instead, I would write a simple
inline_script. The script below should get you started. It shows a simple clock with one hand, which you can adjust until you press enter. Do you get the logic? It's not that difficult, really.See also the relevant pages in the documentation:
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Thank you so much!
You guys are so helpful and kind!