Howdy, Stranger!

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

Supported by

Help please

Hi!
maybe someone can help me how to make a sketchpad that the subjects control with the mouse on the radius of a circle?
Tnx

Comments

  • Hi,

    this is really not enough information. Control what with the mouse? If you want proper support, you have to give more detail.

    Eduard

    PS. MAybe the mousetrap plugin could be useful to you: http://osdoc.cogsci.nl/3.1/manual/mousetracking/

    Buy Me A Coffee

  • Hi Eduard,
    i want to make 1 sketchpad that the participant can draw me a circle- with control on the radius with the mouse.

    i hope that is more clear.
    tnx

  • Like the script that is attached?

    Buy Me A Coffee

  • Yes thank u!

  • Hello everyone,
    Following the above, after they define the radius, I want to give them feedback on success / failure in the task.
    Because it's about pixels, I want them to get positive feedback if their response is within 20 pixels of my answer, and if it's outside of that range they get negative feedback.

    Can you help me with this?
    Many thanks

  • Hi,

    After the response was given, you can add this code:

    if r<20: # I assume r is the variable that represents the radius
        var.correct = 1
    else:
       var.correct = 0
    

    Then you can add a feedback item that shows the feedback in accordance with the value for correct. (Checkout the beginner's tutorial for an example).

    Eduard

    Buy Me A Coffee

Sign In or Register to comment.