URL of experiment: Pavlovia
Description of the problem: For my experiment I want participants to click on an image, and then a text object ‘x’ to display at the location of their click.
begin routine:
getLoc = 'undefined'
Each frame:
if (mouse.getPressed() == [1,0,0]) and getLoc is 'undefined':
getLoc = mouse.getPos()
if (mouse.getPressed() == [1,0,0]) and getLoc is not 'undefined':
clickmarker.setPos(getLoc)
getLoc = 'undefined'
Text object:
It runs locally, but breaks online. I think the error is with how I am setting the position but I am not sure what I need to do to fix this.