Group: Administrators
Posts: 13K,
Visits: 104K
|
Look at
<text correctAnswer> / erase = false / items = answerList / position = (values.posX, values.posY) / fontstyle = ("Verdana", 5.5%, true, false, false, false, 5, 0) / select = values.currentSum / size = (2%, 2%) </text>
in the script. Notice that the element's onscreen position is determined by two values (posX and posY).
See <trial practice> and <trial test> for the calculations of those position values:
<trial practice> / ontrialbegin = [ values.temp2 = number; values.currentSum = values.temp1 + values.temp2; values.currentDigit = values.temp2; values.temp1 = values.temp2; values.posX = (mod(values.currentSum - 1, 9) + 1) * 10; if (values.currentSum >= 1 && values.currentSum <= 9) values.posY = 40% else values.posY = 60%; ] ... </trial>
<trial test> / ontrialbegin = [ values.temp2 = number; values.currentSum = values.temp1 + values.temp2; values.currentDigit = values.temp2; values.temp1 = values.temp2; values.posX = (mod(values.currentSum - 1, 9) + 1) * 10; if (values.currentSum >= 1 && values.currentSum <= 9) values.posY = 40% else values.posY = 60%; ] ... </trial>
You need to adjust those calculations to fit your needs / the altered positions of your response boxes.
|