dragdrop expt


Author
Message
scollin
scollin
Partner Member (907 reputation)Partner Member (907 reputation)Partner Member (907 reputation)Partner Member (907 reputation)Partner Member (907 reputation)Partner Member (907 reputation)Partner Member (907 reputation)Partner Member (907 reputation)Partner Member (907 reputation)
Group: Forum Members
Posts: 9, Visits: 35
Hello,

I am trying to create on experiment during which participants will sort images. I want them to do this by dragging and dropping them into either the red or the blue rectangle. See code below. Even though I'm using dragdrop and dropsource and droptarget, it does not seem to work. Any advice on what is wrong?

Once this works I also want to save in which rectangle a participant has placed each image, I guess I should save this by saving the position on the screen?



<shape bluecircle>
/ shape = rectangle
/ color = (0, 0, 200)
/ position = (80%, 50%)
/ droptarget = true
/ size = (20%, 20%)
</shape>

<shape redcircle>
/ shape = rectangle
/ color = (200, 0, 0)
/ position = (20%, 50%)
/ droptarget = true
/ size = (20%, 20%)
</shape>

<picture egg1>
/ items = ("egg1.png")
/ position = (10%, 10%)
/ dropsource = true
/ size = (5%, 5%)
</picture>

<picture egg6>
/ items = ("egg6.png")
/ position = (20%, 10%)
/ dropsource = true
/ size = (5%, 5%)
</picture>

<picture egg9>
/ items = ("egg9.png")
/ position = (30%, 10%)
/ dropsource = true
/ size = (5%, 5%)
</picture>

<picture egg10>
/ items = ("egg10.png")
/ position = (40%, 10%)
/ dropsource = true
/ size = (5%, 5%)
</picture>

<picture egg18>
/ items = ("egg18.png")
/ position = (50%, 10%)
/ dropsource = true
/ size = (5%, 5%)
</picture>

<picture egg19>
/ items = ("egg19.png")
/ position = (60%, 10%)
/ dropsource = true
/ size = (5%, 5%)
</picture>

<picture egg21>
/ items = ("egg21.png")
/ position = (70%, 10%)
/ dropsource = true
/ size = (5%, 5%)
</picture>

<picture egg41>
/ items = ("egg41.png")
/ position = (80%, 10%)
/ dropsource = true
/ size = (5%, 5%)
</picture>



<text finishtext>
/ items = ("time almost up!")
/ txcolor = (0, 0, 255)
/ txbgcolor = (255, 255, 255)
/ size = (5%, 5%)
/ position = (0%, 0%)
</text>


<trial mytrial>
/ stimulustimes = [0=bluecircle; 0=redcircle; 0=egg1; 0=egg6; 0=egg9; 0=egg10; 0=egg18; 0=egg19; 0=egg21; 0=egg41; 10000 = finishtext]
/ showmousecursor = true
/ inputdevice = dragdrop
/ recorddata = true
/ response = anyresponse
/ responseinterrupt = trial
/ beginresponseframe = 0
</trial>

<block myblock>
/ trials=[1=mytrial]
</block>

<expt>
/ blocks=[1=myblock]
</expt>



GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
scollin - 6 Years Ago
Dave - 6 Years Ago
scollin - 6 Years Ago
scollin - 6 Years Ago
Dave - 6 Years Ago
                     + x [quote] [b] Dave - Monday, August 27, 2018 [/b] +...
abhi - 6 Years Ago
                         + x [quote] [b] abhi - Thursday, October 11, 2018 [/b]...
Dave - 6 Years Ago
                             + x [quote] [b] Dave - Thursday, October 11, 2018 [/b]...
abhi - 6 Years Ago
                                 + x [quote] [b] abhi - Thursday, October 11, 2018 [/b]...
Dave - 6 Years Ago
                                     + x [quote] [b] Dave - Thursday, October 11, 2018 [/b]...
abhi - 6 Years Ago
                                         + x [quote] [b] abhi - Saturday, October 13, 2018 [/b]...
Dave - 6 Years Ago
                                             + x [quote] [b] Dave - Monday, October 15, 2018 [/b]...
abhi - 6 Years Ago
                                             + x [quote] [b] Dave - Monday, October 15, 2018 [/b]...
abhi - 6 Years Ago
                                                 + x [quote] [b] abhi - Saturday, November 24, 2018 [/b]...
Dave - 6 Years Ago
                                                     + x [quote] [b] Dave - Monday, November 26, 2018 [/b]...
abhi - 6 Years Ago
                                                         + x [quote] [b] abhi - Monday, November 26, 2018 [/b]...
abhi - 6 Years Ago
                                                     + x [quote] [b] Dave - Monday, November 26, 2018 [/b]...
abhi - 6 Years Ago
                                                         + x [quote] [b] abhi - Thursday, November 29, 2018 [/b]...
Dave - 6 Years Ago
                                                             + x [quote] [b] abhi - Thursday, November 29, 2018 [/b]...
abhi - 6 Years Ago
                                                                 + x [quote] [b] abhi - Thursday, November 29, 2018 [/b]...
Dave - 6 Years Ago
                                                                     + x [quote] [b] Dave - Thursday, November 29, 2018 [/b]...
abhi - 6 Years Ago
                                                                         + x [quote] [b] abhi - Thursday, November 29, 2018 [/b]...
Dave - 6 Years Ago
                                                                             + x [quote] [b] Dave - Friday, November 30, 2018 [/b]...
abhi - 6 Years Ago
                                                                                 + x [quote] [b] abhi - Friday, November 30, 2018 [/b]...
Dave - 6 Years Ago
                                                                     + x [quote] [b] Dave - Thursday, November 29, 2018 [/b]...
abhi - 6 Years Ago
                                                                         + x [quote] [b] abhi - Thursday, December 6, 2018 [/b]...
Dave - 6 Years Ago
                                                                             + x [quote] [b] Dave - Thursday, December 6, 2018 [/b]...
abhi - 6 Years Ago
                                                                                 + x [quote] [b] abhi - Wednesday, December 19, 2018 [/b]...
Dave - 6 Years Ago
mongrel - 5 Years Ago
Dave - 5 Years Ago
                 + x [quote] [b] Dave - 6/18/2019 [/b] + x...
mongrel - 5 Years Ago
                     + x [quote] [b] mongrel - 6/18/2019 [/b] + x...
Dave - 5 Years Ago
                         + x [quote] [b] Dave - 6/18/2019 [/b] + x...
mongrel - 5 Years Ago
                             + x [quote] [b] mongrel - 6/19/2019 [/b] Hi Dave,...
Dave - 5 Years Ago
                                 + x [quote] [b] Dave - 6/19/2019 [/b] + x...
mongrel - 5 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search