|
Post by Partenope on Dec 24, 2021 22:43:17 GMT
Hi! I have to create an experiment like this:
In an experimental trial, a stimulus display, a square frame containing several objects, was
presented for 30 sec on the computer screen. The objects then disappeared from the square and
reappeared in a row above it. Subjects could select an item of their choice with the computer mouse
and place it where they wished. Each object could be shifted to a new position as often as thought necessary.
I can code a relocate object experiment, but I have no idea if it's possible with PsyTookit to let the participant choose which item to click first, and to let him to relocate an object all the times he wants to do it.....any advice about how to code this experiment?
Thank you in advance
|
|
reed
New Member
Posts: 6
|
Post by reed on Jan 6, 2022 0:49:10 GMT
Letting them choose what item to click first should be pretty easy. When you input your readmouse command, you should be able to give it a range of stimuli that participants are allowed to click on. This should allow the participant to click on any item they wish. Then you can do another readmouse command for the location they move that item to. I'm doing something similar, and it looks like this:
readmouse l 1 60000 range 2 9 set $m1 UNDER_MOUSE readmouse l 1 60000 range 1 set $m2 UNDER_MOUSE relocate $m1 MOUSE_X MOUSE_Y In this case, stimuli 2 through 9 are the objects to be moved, and stimulus 1 is the square in which participants can place the objects. This should allow participants to place the stimuli they selected anywhere they want provided it's inside that square.
In terms of allowing participants to relocate an object however many times they want, I'd say you could probably put a while loop around the code you use to relocate the objects to loop it infinitely until a certain condition is reached.
|
|
|
Post by Partenope on Jan 19, 2022 12:35:59 GMT
Thank you very much! I will try
|
|