Visual Timer in Psychopy

OS: MacOS Monterey
PsychoPy version: 2022.2.5
Hi, I’m new to PsychoPy Builder and I’m trying to create a visual timer using two rectangle polygons, one white and the other red, that overlap. I would like the red bar to slide from left to right as a visual cue for a 10-second timer for each trial. At the end of the 10 seconds, I would like the trial (a mathematical operation task with responses entered via a number pad) to end, allowing a new mathematical operation to be presented. I’m not sure where to start, so any help would be greatly appreciated.
Thanks a lot!

How about setting the position of the red polygon to update every frame with a position of e g. (t/20-.25,0) and a duration of 10 seconds?