I’m using the Builder 2022.2.4, I need your help because I’m not practical in writing codes.
I have 3 sequential routines (called: trial 1, trial 2, trial 3). In the “trial 2” there is an object called “polygon”.
My goal is this: if you click on this object, you skip the trial 3 and return directly to the trial 1.
How can I do it?
I know I have to add a code, but I don’t know how to do it.
In this case, you can extend the previous solution:
In the very first routine (Begin routine)
nextTrial = False
In every routine that has a white polygon (Each frame)
if mouse.isPressedIn(polygon_white): # will have to be adapted to each routine, because the polygons will have to have different names
nextTrial = True
It worked in part, because (I think) the polygon white is clickable along with the polygon black.
So I added “if mouse.isPressedIn(polygon_black): nextTrial = False” and it worked.