# Presenting multiple stimuli in parallel and getting mouse response

**URL:** <https://psychtoolbox.discourse.group/t/presenting-multiple-stimuli-in-parallel-and-getting-mouse-response/3026>\
**Category:** Programming Help\
**Tags:** windows\
**Created:** [February 6, 2020, 6:09am UTC](https://psychtoolbox.discourse.group/t/presenting-multiple-stimuli-in-parallel-and-getting-mouse-response/3026 "2020-02-06T06:09:21Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![RAM](https://yyz2.discourse-cdn.com/free1/user_avatar/psychtoolbox.discourse.group/ram/32/46_2.png) [@RAM](https://psychtoolbox.discourse.group/u/RAM)\
**Post date:** [February 10, 2020, 9:44am UTC](https://psychtoolbox.discourse.group/t/presenting-multiple-stimuli-in-parallel-and-getting-mouse-response/3026/6 "2020-02-10T09:44:29Z")

</div>

@dcnieho @Ian-Max-Andolina I have a couple of doubt regarding my question which is about uploading multiple images and presenting them in parallel.  
1.So here i’m trying to present three images of continents in parallel, one of which the user can click on to view few countries from the corresponding Continent. I’m unable to present multiple images because I’m not sure how to define destination for each texture with the screen function for the corresponding images. now the code which i tried just displays one picture in the top right corner. I want all three pictures to form a row in the middle of the screen, with one picture in the middle and other two on either side.  
2. how to define the mouse response, such that if the user clicks on any of Continent, it will lead to presentation of three more images of countries within that Continent.  
p.s i’m a beginner, so any ideas on how to implement this will be helpful.  
the code so far is ,  
close all  
clear all  
sca  
clc  
PsychDefaultSetup(2);

%finding screen  
screens=Screen(‘Screens’);

screenNumber=max(screens);  
%creating screen  
%opening window with black screen  
black=BlackIndex(screenNumber);

%uploading images from the folder  
Stimulifolder=([‘C:\Users\RAMPRIYADARSHNI\Desktop’ filesep ‘agency experiment’ filesep ‘southamerica’]);  
C1=imread(‘southamerica.png’);  
% C2=imread([Stimulifolder ‘africa.png’]);  
% C3=imread([Stimulifolder ‘europe.png’]);

%opening window  
[window, windowRect]=PsychImaging(‘Openwindow’,screenNumber,black);

%converting C1 image into texture and presenting it  
imageTexture = Screen(‘MakeTexture’, window,C1);  
Screen(‘DrawTexture’, window, imageTexture,[],[200 200 600 600]);  
Screen(‘Flip’, window);

WaitSecs(2);  
sca;

---

_[View the full topic](https://psychtoolbox.discourse.group/t/presenting-multiple-stimuli-in-parallel-and-getting-mouse-response/3026)._
