How to use dynamic trial parameters with the image-button-response plug-in? #1427
-
Hello! I am creating a task in which participants are shown an image and decide to either press a button or not. Depending on if they press the button, they will be shown another image (stimuli A or stimuli B) drawn at random. I have the following code:
EDIT: the code above executes properly. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Solution: If you want a different image to be displayed each time, you'll need to replace the static variable with the jspsych.randomization call instead, to randomly select from the stimuli options each time. See code for edit. |
Beta Was this translation helpful? Give feedback.
Solution: If you want a different image to be displayed each time, you'll need to replace the static variable with the jspsych.randomization call instead, to randomly select from the stimuli options each time. See code for edit.