Mettre le stimulus en mouvement

Bonjour, Je veux faire une expérience en psychopy: les participants vont discriminer le plus grand entre 2 ballons de tailles différentes. Je veux mettre ces ballons en mouvement, ils vont tipper et ensuite se deplacer sur l’écran.
Je ne cais pas coder, je suis nouveau.

Hello, I want to do an experiment in psychopy: participants will discriminate the largest between 2 balloons of different sizes. I want to set these balloons in motion, they will tinkle and then move on the screen.
I don’t know how to code, I’m new.

How far have you got? Do you have a working experiment without the tinkle and movement?

By tinkle do you mean a sound?

Jusqu’où en êtes-vous ? Avez-vous une expérience de travail sans tipper ni mouvement ?

Par tipper, voulez-vous dire un son ?

Bonjour,
je crée l’expérience avec ballons en mouvement. Je ne sais pas comment mettre 2 stimuli ballons dans psychopy. Puis comment faire bouger les 2 stimuli.

Hello,
I’m creating an experiment with moving balloons. I don’t know how to put 2 balloons stimuli in psychopy. Then how to make the 2 stimuli move

  1. Find an image of a balloon

  2. Create an image component (e.g. balloon_1)

  3. Either set the position to update every frame based on a variable (e.g. [-.2, -.3 + t *.05] or change the position using something like balloon_1.setPos([-.2, -.3 + t *.05]) in Each Frame code

  4. Repeat for the second balloon

Or do something similar with polygons

Bonjour,
J’ai remplacé les ballons par des cercles à partir de polygone.
Je ne sais comment faire pour déplacer les cercles horizontalement à partir du code ?
j’ai copié et collé ceci dans la partie code mais je ne sais pas comment changer les chiffres dans ces formules ?

core.monotonicClock.getTime()

time_zero = core.monotonicClock.getTime()


Hello,
I replaced the balloons by circles from polygons.
I don't know what to do for the horizontal circle people from the code?
I copied and pasted this in the code part but I don't know how to change the numbers in these formulas?

core.monotonicClock.getTime()

time_zero = core.monotonicClock.getTime()

To move a polygon set the location as a variable (e.g. [ballonX,ballonY]) set Every Frame

In Begin Routine set the starting position, e.g. ballonX = -.4 and ballonY = 0

Why are you trying to access the clock? You can use t if you want the time since the routine started.

For example, you could just have the location as [-.5 + t/5, 0] as the location set every frame.