# Multiplayer fMRI Task?

**URL:** <https://discourse.psychopy.org/t/multiplayer-fmri-task/21941>\
**Category:** Coding\
**Created:** [April 1, 2021, 10:30pm UTC](https://discourse.psychopy.org/t/multiplayer-fmri-task/21941 "2021-04-01T22:30:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ca03](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/ca03/32/7597_2.png) [@ca03](https://discourse.psychopy.org/u/ca03)\
**Post date:** [April 1, 2021, 10:30pm UTC](https://discourse.psychopy.org/t/multiplayer-fmri-task/21941/1 "2021-04-01T22:30:22Z")

</div>

Hi all,

Does anyone have any tips/resources for building multiplayer experiments? I’m relatively new to PsychoPy and am looking to convert a single-player task to partner-based experiment. I’d like to have two participants completing the same task simultaneously trial-by-trial, each able to see the other person’s response at the conclusion of each trial. I’m also hoping to adaptively modulate parameters like the allowed response time and fixation times depending on their partner’s performance.

This is an fMRI task and would ideally utilize a single computer running two ‘instances’ of the study simultaneously (with two button boxes), with each ‘instance’ passing data to the other. Does this sound possible? Any advice would be appreciated 🙂

Thank you!

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [April 1, 2021, 10:40pm UTC](https://discourse.psychopy.org/t/multiplayer-fmri-task/21941/2 "2021-04-01T22:40:10Z")

</div>

If you can have two button boxes being recognised as different responses in the same experiment then that sounds possible. However, I think it would need to be one experiment rather than two running in parallel.

---

<div class="post-metadata">

**Author:** ![ca03](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/ca03/32/7597_2.png) [@ca03](https://discourse.psychopy.org/u/ca03)\
**Post date:** [April 1, 2021, 11:28pm UTC](https://discourse.psychopy.org/t/multiplayer-fmri-task/21941/3 "2021-04-01T23:28:07Z")

</div>

Thanks, I see on another [thread](https://discourse.psychopy.org/t/two-unique-keyboard-inputs/8534) that multiple inputs are allowed on Mac/Linux, so I think that could work!

One more question – if running the task as a single experiment rather than two in parallel, would it still be possible to output two different streams simultaneously? Part of the task is to restrict participants from seeing each other’s screens until feedback is given at the end of the trial.

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [April 2, 2021, 7:23am UTC](https://discourse.psychopy.org/t/multiplayer-fmri-task/21941/4 "2021-04-02T07:23:23Z")

</div>

It may be possible to specify two windows and address them separately. However, another option would be to extend the desktop across the two screens so one participant sees right of centre and the other sees left

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [April 7, 2021, 8:23am UTC](https://discourse.psychopy.org/t/multiplayer-fmri-task/21941/5 "2021-04-07T08:23:32Z")

</div>

This thread may help with the two screens

> [@Presenting stimuli on two screens](https://discourse.psychopy.org/t/presenting-stimuli-on-two-screens/983):
>
> I am wanting to design an experiment that presents stimuli onto two screens. The experiment will involve presented one image (for example) on one screen while another image is presented on the second screen. I haven’t had any luck with designing this experiment so far. Is this possible using PsychoPy? I have access to both a Mac or a PC so if one version is better than the other for this that won’t be a problem.

---

<div class="post-metadata">

**Author:** ![ca03](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/ca03/32/7597_2.png) [@ca03](https://discourse.psychopy.org/u/ca03)\
**Post date:** [April 7, 2021, 5:08pm UTC](https://discourse.psychopy.org/t/multiplayer-fmri-task/21941/7 "2021-04-07T17:08:44Z")

</div>

Thanks, this is super helpful!
