Changing or highlighting target text on screen

Hello,

I am trying to create an experiment where two words are presented on the screen. After 1000ms, one of the words (the target word) changes color (or becomes highlighted, or surrounded by a box, or something like that). The target word should sometimes be on the left and sometimes on the right.

The way I went about doing this was to have SuperLab draw from two lists, “targetlist” and “fillerlist”, and have two text events immediately sequential to each other. These events use the two-level trial variable “ScreenPosition” to place each word on the left or the right. Then, after 1000ms, the process is repeated, but this time, the text event that outputs the word from “targetlist” is set to write in red. However, because ScreenPosition is random, sometimes the position of the two words flips. In order for this approach to work, I need SuperLab to be able to “remember” what the previous value of ScreenPosition was, which I don’t think is possible.

So, is there another way to go about solving this problem? Thanks in advance for any ideas or suggestions.

It is possible to do it. Rather than having SuperLab 4 “remember” the last position, you can have it stuck at repeating the same sequence over and over again within a trial. To do so:

  • Edit your trial variable
  • In the [B]Level Selection[/B] tab, set the option “Randomize levels before start of” to [B]Each Trial[/B]
  • At the bottom of the dialog, the [B]Randomize again[/B] option is turned on by default; turn it off
The attached experiment does what you asked for. There is an event called “no nothing event”; it’s only purpose is to use up the first location, i.e. the filler’s location. This is followed by an “underline” event that displays a red underline under the target text. (Note: on SuperLab for Windows, this might erase the target word, but you get the idea; the positioning is correct).

rjt experiment.sl4 (6.05 KB)

Hi Hisham,

Thanks, that worked a treat! I hadn’t considered the possibility of randomizing just within the trial. The experiment works perfectly now!