Hello everyone!
I have to adapt an existing task (
http://www.millisecond.com/download/library/AAT/ ) which resizes images depending on whether the user moves the mouse up or down.
The goal is that it resizes the images by pressing the up or down arrow. I've been figuring out how the original task did it over the last 3 hours (including some adaptations for the images/texts of course
:) )
Now the problem is that with the mouse movement it's possible to change trials on every input change.
See
practicetrial_A/practicetrial_B and
practicedecrease/practiceincrease:
/validresponse = (mousemove)
[...]
/branch = [if (trial.practicedecrease.responsey <= 0)
{values.mouse_y = trial.practicedecrease.responsey; values.endtime = script.elapsedtime; values.finalresponse = "PUSH"; trial.enddecrease_practice}]
/branch = [if (trial.practicedecrease.responsey <= values.mouse_y)
{values.mouse_y = trial.practicedecrease.responsey; trial.practicedecrease}]
/branch = [if (trial.practicedecrease.responsey > values.mouse_y)
{values.mouse_y = trial.practicedecrease.responsey; values.changedirection += 1; trial.practiceincrease}]This can be found in the increase/decrease trials which let the image grow or shrink. It switches quickly from one trial to another, depending on mouse movement.
With the keypress it seems one has to press and release the key to make inquisit register it as an input and change the trial. But it's not very usable if one has to press 24+ times per second to make the image appear growing ;)
It's important to let the images grow/shrink animated and also to stop the growing/shrinking process when the user releases the corresponding key.
Do you, dear reader, have any suggestions on how to tackle that problem?
Cheers
Piko
PS: Offtopic and not relevant, but when signing up and receiving the activation link, the text on the activation website told me that the user name should appear on the top left corner, even though it's in the top right corner. Not complaining, just letting someone know, as I couldn't find a subforum about the forum itself...
DELETE ME
DELETE ME
DELETE ME
DELETE ME
DELETE ME
DELETE ME
DELETE ME
DELETE ME
DELETE ME
DELETE ME
DELETE ME
DELETE ME
DELETE ME
DELETE ME
DELETE ME
DELETE ME
DELETE ME
DELETE ME
DELETE ME
DELETE ME
DELETE ME
DELETE ME