DnD Multiple Targets 1 Demo Experiment Run Experiment

DnD Multiple Targets 1

Jaap Murre


Script that demonstrates one way to recognize where a moveable block has been dropped.

If you are a registered user and signed in, you can here copy this script and its stimuli to your own account, where you can edit it and change it in any way you want.

It is absolutely free to register (no credit card info asked!). You can then instantly copy this experiment with one click and edit it, change its accompanying texts, its landing page, stimuli, etc. Invite your colleagues, friends, or students to check out your experiment. There is no limit on how many people can do your experiment, even with a free account.

The catch? There is no catch! Just keep in mind that with a free account, you cannot collect data. For teaching that is usually not a problem. For research, prepaid data collection (unlimited subjects) starts as low as €10.00 for a 10-day period.

var a = [
        addblock(10,10,12,12,"lightcoral"),
        addblock(25,10,12,12,"lightcoral"),
        addblock(40,10,12,12,"lightcoral"),
        addblock(55,10,12,12,"lightcoral"),
        addblock(70,10,12,12,"lightcoral")
    ],
    b = addblock("center",70,8,8,"lawngreen","?").moveable(),
    i, j, is_inside;

for (i = 0; i < 500; i++)
{
    await(50);
    
    is_inside = false;
    
    for (j = 0; j < a.length; j++)
    {
        if (b.inside(a[j]))
        {
            b.text(j+1)
             .style('background-color','maroon');
            is_inside = true;
        }
    }
    
    if (!is_inside)
    {
        b.text("?")
         .style('background-color','lawngreen');
    }
}

You can download the files as follows: Click on the file (link) and then right-click and choose Save as... from the menu. Some media files (e.g., sound) will have a download button for this purpose.

This experiment has no files of this type
This experiment has no files of this type
This experiment has no files of this type
This experiment has no YouTube links
This experiment has no files of this type