<trial picture1>
/ inputdevice = mouse
/ ontrialbegin = [shape.left.color=black]
/ontrialbegin = [shape.right.color=black]
/ stimulusframes = [1=left,right,targetborder,left1,target1,right1,done]
/ validresponse = (left1, right1,done)
/ontrialend = [if(trial.picture1.response=="left1")shape.left.color=red]
/ontrialend = [if(trial.picture1.response=="right1")shape.right.color=red]
/ branch = [if(trial.picture1.response!="done")trial.picture1]
</trial>
If I define the shape color as black at the beginning of each trial like this, then the shape color will not change to red when I click it.
I am confused.