Both solutions I adopted (= copy past with changing numerical value for the second piece) from this forum. They work offline only.
That is, the mouse is visible all the experiment in the browser window; I have break screen every trial.
Could somebody be so nice and help me?
I will greatly appreciate your help and time,
Dina.
an easy solution for the non-hidden mouse, is to use a javascript-only code block at the beginning of the experiment (maybe at the beginning of the first routine) with this content:
document.body.style.cursor='none';
This will hide the cursor entirely.
A simple solution for the non skipped Break-Message could be:
Place the skip code in the “Every Frame” part of the code block.
If this is not working:
MainExp.thisN might return the total number of trials in the Loop, instead of the currentTrial index.
You can simple use a variable at the beginning of the loop: trialCounter = 0
and count up the trialCounter after each trial with:
trialCounter++;
Hi Luke,
thank you very much for your prompt reply! The
document.body.style.cursor=‘none’;
worked perfectly.
Adding myCounter according to the crib sheet instructions solved the second problem, I switched the code component for break to “Both”.
Since I now removed the debugging version of the experiment from pavlovia, I am attaching the code to my reply. I hope it can be helpful to other people (not adding tones of stimuli).
Thank you very much!
Dina. EP_22.7.21.psyexp (94.5 KB)
Hi Luke,
may I ask you a follow up question?
How can I save myCounter data to the csv (offline and online)?
Currently I have csv output with .ThisN saved automatically, separately for practice loop and main experiment loop. Eventually, I would like to have a trial number for practice and main part (starting from 0 in main experiment) in one column of the csv output.
I will greatly appreciate you help.
Dina. dina_EP_25.7.21Full_2021-07-29_10h11.27.991.csv (101.9 KB) EP_25.7.21Full.psyexp (90.7 KB)