PennController for IBEX › Forums › Support › Can we randomize time with newTimer() ? › Reply To: Can we randomize time with newTimer() ?
March 21, 2022 at 2:17 pm
#7914
Jeremy
Keymaster
Place the commands in the success
and the feedback
commands, eg. for success
from the code in your message:
.success( newVar("positiveFeedback").set( getVar("localRT") ).set( v=> "Correto! You spent "+v+"ms on this trial" ) , newText("success") .text( getVar("positiveFeedback") ) .cssContainer({"font-size":"30px", "margin-top":"255px","font-family":"Comic Sans MS", "color":"green"}) , getVar("accurate").set(v=>[...v,true]) )
Your script already achieves including a trial (labeled “feedback”) that prints the average time spent on the practice trials
Jeremy