This sample experiment demonstrates two different methods (Slide object and Canvas) for implementing a Score Bar.
The first method uses multiple 'SlideText' sub-objects arranged horizontally. After a subject responds, the appropriate sub-object is accessed using a 'SlideText' variable in 'InLine' script. The BackColor property of the 'SlideText' is then set to red or white as appropriate. This part of the experiment ends after 20 trials, or when the Score Bar is full.
The second method uses a Canvas object to draw a red rectangle across the bottom of the screen. The width of this rectangle increases by 100 pixels for each correct answer, and decreases by 100 pixels for each incorrect answer. This part of the experiment ends after 20 trials, or when the Score Bar is full.