Display text stimulus in random postions
Okay I was able to solve an issue from a previous post by following @Fab advice.
I located the error and took it out. But now a condition of my experiment is missing. I want to randomise the location of the text stimulus (e.g., x=302, -302; y=174, -174) within the parameters of a rectangle box (i.e., x=352, -352; y=224, -224) so that participants aren't just focusing on the center of the screen and zoning-out distractor letters in a flanker task.
I understand that I may have to adapt the following post to my requirements
but I have no idea where to start and how to implement the edits suggested in this post and similar ones. Do I edit the script in the sketchpad? I understand that inline_script does not work through OSweb so I hope it's not that.
I'm unsure how to edit it to achieve what I want. I've tried doing stuff with the random and uniform function but keep running into errors. Anyways here is the basic script at the moment.
set duration 0 draw rect color="#3e3e3e" fill=1 h=448 penwidth=1 show_if=always w=704 x=-352 y=-224 z_index=2 draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=50 html=yes show_if=always text="[Stimulus]" x=0 y=0 z_index=0
Here is the trial loop if it is of any use:
If anyone could point me in the right direction it would be much appreciated!