Hi all,
I have a simple miTime task, in which I present several stimuli together on the screen, at the same time:
// The behavior trial.
API.addTrialSets('bv',
{
data : {condition:'basic', score:0, block:1},
//Inputs for skipping.
input: [
{handle:'skip1',on:'keypressed', key:27} //Esc + Enter will skip blocks
],
interactions: [
{ // begin trial
conditions: [{type:'begin'}],
actions: [ //Show the name image and behavior for 5000 ms.
{type:'showStim',handle:'border'}, // group-colored border
{type:'showStim',handle:'name'},
{type:'showStim',handle:'image'},
{type:'showStim',handle:'behavior'},
// {type:'showStim',handle:'All'}, // <== this shows all stims, while the individual calls show only thr border & name
{type:'trigger',handle:'hideBV', duration:5000} //50000
]
},
{//Hide all the stimuli
conditions: [{type:'inputEquals',value:'hideBV'}],
actions: [
{type:'hideStim',handle:'All'},
{type:'log'},
{type:'trigger',handle:'endTrial', duration:750}
]
},
For some reason, when I play the task, the 'image' and '
behavior
' stimuli are hidden (when I inspect the trial elements I see a 'visibility: hidden' property, and I can see the stimuli if I remove that property). The other two stimuli are presented as expected.
When I use '{type:'showStim',handle:'All',' instead of calling showStim for each stimulus - everything is presented.
The trial you see here is a 'basic' trial that is later inherited.
What am I missing here?
Here is the task
(lrn.js), and
here is the link to the study.
Thanks,