Troubleshooting

PennController for IBEX Forums Troubleshooting

Viewing 76 post (of 76 total)
  • Author
    Posts
  • #11066
    brookecarrier
    Participant

    Hi Jeremy,

    I am working on an experiment that displays a picture of a gumball machine with a canvas covering the top of the machine and another canvas covering the dispenser at the bottom of the machine. When the user clicks on either one, that canvas is removed and the number of gumballs under it is revealed. The goal is to have the user be able to click between the two canvases as many times as they want; if they click the bottom one it is removed but the top one stays, and then if they click the top one the bottom canvas reappears and the top disappears. The user must decide whether an audio statement about the gumball machine is true or false and they respond with a key press (F and J).

    I tried using a selector to allow the user to click either canvas, but I am not sure how to embed code that would allow for a key press response at any time to go to the next trial. If you have any ideas for how to accomplish this, that would be great! Thank you so much!

    Here is my code (the relevant section begins at line 200): https://farm.pcibex.net/r/ErmDSd/

    Brooke

Viewing 76 post (of 76 total)
  • You must be logged in to reply to this topic.