Preloading images #1301
-
Hi, The whole code is as follows: var pre_test_instructions = { This is just a practice to get familiar with the real test. '+' When you see the pictures, press the space bar and name them aloud as fast as you can. '+' Press the space bar to begin this part. '], allow_keys: true, post_trial_gap: 1000 } var fixation = { + ',choices: jsPsych.NO_KEYS, trial_duration: 500 } var practice_prime = { var practice = { var test_instructions = { When you see the pictures, press the space bar and name them aloud as fast as you can. '+' Press the space bar to begin the real test. '], allow_keys: true, post_trial_gap: 1000 } var prime = { var target = { var test = { var images = ['11.png', '5.png', '43.png', '00.png', '13.png', '12.png', '3.png']
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @Fariba-86! In your var images = ['img/11.png', 'img/5.png', 'img/43.png', 'img/00.png', 'img/13.png', 'img/12.png', 'img/3.png'] Does that fix the problem? |
Beta Was this translation helpful? Give feedback.
Hi @Fariba-86! In your
timeline_variables
array, it looks like your image file names are prefixed withimg/
. So if your images are all stored inside of a subfolder called "img", then you just need to include that in the file paths in theimages
array that you're using for preloading:Does that fix the problem?