Howdy, Stranger!

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

Supported by

[solved] Rotating Fixation Point

edited June 2013 in OpenSesame

Hi Everyone,

I am an absolute beginner at programming and brand new to opensesame, so I apologise if my questions seem very trivial. I'm setting up my experiment and what I would like to do is at the beginning of each trial I would like a fixation point, however, I want my fixation point to randomly vary over 4 different positions (i.e. top right, top left, bottom right, bottom left). I am not sure how I go about this, could somebody please give me a step-by-step instruction on what to do (baring in mind my how novice I am).

Thank you

Vikki

Comments

  • edited 5:17PM

    Hi Vikki,

    Welcome to the forum!

    If you're brand new, you might want to start by doing the tutorial. It won't take too long, and it will really help you to get started. It will also help you to understand the explanation below.

    Regarding your question. There are a couple of ways to do this. I'll explain two:

    Using flexible coordinates
    First, create two variables in a loop table, and give them the coordinates that you want to use. Let's call them x_fix and y_fix to indicate that they are the coordinates of the fixation dot. Say, like this:

    x_fix y_fix
    -100 -100
    -100  100
    100   100
    100  -100

    Next, draw a fixation dot at a random location on the sketchpad. Right click on the fixation dot and select edit. Now, change the piece of script so that the static coordinate values are replaced by the variables, like so:

    draw fixdot [x_fix] [y_fix] color=white show_if="always"

    Now press ok and you're done!

    Using multiple sketchpads and the 'run if' option in a sequence
    First create a single variable, let's call it fix_pos, in a loop table that indicates the position of the fixation dot. Say, like this:

    fix_pos
    topleft
    topright
    bottomleft
    bottomright

    Next, create a couple of different sketchpads with the fixation dots as you'd like to see them. Then use the run-if statement of the sequence that contains the sketchpad to define when the sketchpads should be shown. For example, the run-if statement for the sketchpad with the fixation dot in the top left should look like this:

    [fix_pos] = topleft


    Hope this helps!

    Cheers,
    Sebastiaan

  • edited 5:17PM

    Thank you for you rapid response :-)

    I shall do your suggestions. I have another question, but I will have a go at the tutorial before I ask, see if I can problem solve!

    Thanks again,

    Vikki

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games