What I realised was happening is that my experiment in general was using up way too much CPU and this meant that sometimes when the participant clicked on the objects psychopy didn’t record what button was clicked before it jumped ahead and ended the routine anyway. Although I have no doubt the “hover” mode idea you suggested would have worked if we had more time to update the task with that!Īs for my other issue, no it was to do only with clicks. In the end we decided it wasn’t worth creating a version solely for touchscreen devices and instead asked participants to use a laptop/computer. Let me know if you think I should move this qs to another thread or if I can provide anymore code that helps.Īpologies for my very slow response to this. Do you know what may be happening here? I have been trying to look around and I have a suspicion that perhaps the click.ispressedIn(object) code could be unreliable at times/prone to errors? Are there better alternative that would do the same thing and don’t require a lot of extra programming? Its as if the computer didn’t register the click properly so just defaults back to their last choice. I have checked the files and for some of these trials in which a mistake occurs, both forestleft or forestright were set to 0 and it seems to send participants to where they last made their choice in the previous trial. For the most part, it works perfectly but there one or two trials in which participants click to go right and it takes them left. Then in the End Routine component, if “forestleft” is 1 participants wil see the left path of the forest in the next routine etc… they are then given a reward/loss depending on trial and it subsequently loops them back to do all this again. See below for my code for left and right clicks: if (clickScene_3.isPressedIn(keyRight_forest)) or (key_resp_10.keys = 'right'):Įlif (clickScene_3.isPressedIn(keyLeft_forest)) or (key_resp_10.keys = 'left'): To record clicks, I use the click.ispressedIn(object) code to record responses in each frame. Participants can either click or use key presses to make their decisions. Maybe I should start a different post for this (let me know if I should).īasically, my task requires 42 trials where participants make two choices: to take a character up (to a garden) or down (to a forest) initially, then they go left or right in the garden or forest. In the meantime, I have encountered a separate issue regarding clicks, even for laptops/computers or indeed locally. I’m going to attempt to make a “touchscreen version of my task” this weekend using that if ntains code you sent and I will update you if that works via Zoom. A “hover” mode is a great idea for touchscreen device users. It’s not essential but I would like to give participants who may not have access to laptops/computers the opportunity to take part (although in general if people have iPads/touchscreen devices they usually have both). Has anyone else encountered a similar issue or know what the problem might be? Apologies if this has been covered already! I don’t mind if participants have to double tap to make a decision but I just need it to register taps at all. But when I am giving remote control to a touchscreen device over Zoom it does not seem to register clicks at all. I have checked and my exp works okay locally with a touchscreen device (although I need to double tap to register a click). However, it does not recognise “clicks” when they use a touchscreen device/phone. This approach works perfectly if I am sharing to participants using laptops or desktops. Therefore, my approach is to share my screen with participants via Zoom, giving them access of my screen and they can click on the buttons as if they were in the lab. When they make a click it takes their avatar down a certain route and they need to make further decisions.īecause of Covid, I need to run this study online but it is also protocol that an experimenter is present for the session. I have designed an experiment where children click different “clickable” buttons on a screen to make decisions.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |