In the learning phase the participant has 30 seconds to walk around and learn the spheres' colors. They are given instructions and notified when the time is up. The viztask.waitTime command is used to keep track of timing. Replace the learnPhase() function with the following code:
There are different ways you can instruct the participant. Here written instructions are given on the screen for the participant to read. It would be just as easy to give audio instructions by playing pre-recorded sound files at the appropriate times or give both written and audio instructions at the same time. Take a look at the Sound Basics page to learn how to play audio files.