This task demonstrates how to calculate progress and display it to participants throughout the task in a form of a Progress Bar. This might be particularly helpful in long tasks to keep participants informed on how far into the task they are.
First, add a Progress bar component - a visual element of the progress - to the screen(s) where you want to show the progress. In this example, we added it to both the Fixation and the Response screen in the Trial display.
On the Fixation screen, in the Objects tab, set the Progress Maximum to the total number of trials in your task (here, 4). This tells Gorilla how much of the bar to fill up each time progress increases. We then add this same Progress Bar component on to the Response screen (an easy way to do this is to copy and paste, using the three-dots menu at the top right of the component). The Progress Bar component should have the same settings on each screen where you want it to display.
Next, we need to tell Gorilla when to increase progress. On the Screen tab of the Response screen, we add an Increase Progress component. Here, we set the conditions for progress increase. In this example, we want to increase the progress on every trial, regardless of the response given, its accuracy or other criteria. Therefore, we choose 'Any Response'. This way, at the end of the Response screen, the progress will increase, and on the next trial we will see Progress bar filling on the top of the screen.
This is a simple example of showing progress across all trials within one task. Using the optional Custom Field setting, you can also set up the Progress Bar so that it increases across multiple tasks in a single experiment, as shown in this Progress Bar across Multiple Tasks Sample.