Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[open] "Wack-a-Mole Game" Help Needed

edited March 2015 in OpenSesame

Hello everyone! I am fairly new to OpenSesame and Python coding. I am trying to create an experiment on an android tablet that will display a single dot on the screen until touched by the user. After this response I would like another dot to appear in a different area on the screen and the user would again touch this dot and so on and so forth. The touch must be fairly close to the dot before it will disappear and the code will need to record data such as reaction time and accuracy. Another fairly odd feature of this experiment is that the dots must appear in a sequential order (not randomly) with about 16 different locations on the screen. I have no idea if OpenSesame is even capable of doing something like this so any help would be greatly appreciated even if it is just to get me started! If you have any other questions about the experiment please feel free to respond with them. Thanks everybody!

Comments

  • edited March 2015

    Hi,

    This shouldn't be too hard to implement, although the details depend on what exactly you want to do.

    • To begin, I would define the coordinates of the dot in a loop item, typically the block_loop (if you're working from the Extended Template). So you would for example define a dot_x and a dot_y variable.
    • Next, you use a sketchpad to present a dot (or whatever) on the location specified by dot_x, dot_y, typically as part of the trial_sequence.
    • Finally, you collect a response with a mouse_response item. This will log the cursor (= touch) coordinates, which you can use to determine the accuracy during the analysis.

    Since this is all pretty standard stuff, I'll refer you to the beginner tutorial if you're unsure how to implement this:

    Good luck!

    Cheers,
    Sebastiaan

Sign In or Register to comment.