Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[open] help with random number and sketchpad

edited April 2015 in OpenSesame

Hello, I'm having trouble figuring out how to make a display that has four images (above, below, right and left of fixation). One of the images is the target, the rest are filler images. Each image has a line segment (an image file that I call and super impose on the images). As of now, my design is admittedly not efficient. I have a variable for "target image", "filler image 1", "filler image 2", and "filler image 3" all in block loop. So each trial it calls a target image and then three filler images to fill the display. Then I call the image files of the oriented line segments (what the participant responds to) on top of the images.

First, I imagine there must be some more efficient way to generate the target display. I'm an amateur at best for programming.

Second, I've been trying to create a random number (randint function) between 0 and 1 for the filler images superimposed line segment image. So if it is a 0, it assigns the "up and to the right diagonal line file" to each filler image variable ("filler#_line_orientation). If it's a 1. It assigns the other diagonal line. I use an if statement and for some reason I can't seem to get it all to work. How can I do this correctly? In as simple a way as possible (again, I'm a novice programmer).

I would greatly appreciate help!

Comments

  • edited 7:04AM

    Hi,

    First, I imagine there must be some more efficient way to generate the target display. I'm an amateur at best for programming.

    Seems fine to me. Maybe there are better ways, but then , I'd need a bit more specific information on your strategy. If not too much trouble, you could paste your code, or upload the experiment somewhere and post it here.

    Best,

    Eduard

    Buy Me A Coffee

Sign In or Register to comment.