Wakefield's Daily Tips

Set initial values if you update Each Frame

Online, if you an attribute of a visual stimulus is updated Each Frame then the first frame of presentation will use default values (e.g. position [0,0]) even if the stimulus starts after the routine has started. To solve this issue, set suitable default values in Begin Routine.

For example:

polygon.setSize([.2,.2])
polygon.setPos([-.75,-.5])

Often I just set the initial size to [0,0] (e.g. polygon.setSize([0,0])) so the stimulus isn’t visible until the second frame.