[solved] Touch Response function with Sketchpad
I was wondering if there is a way to see the grid that you define in the touch response item. I wish to display some text in a sketchpad where a word is placed in each cell of the grid. I need to see this grid as so to place the words in each cell. Many thanks,

Comments
There is no way to visualize the grid used by the
touch_responsedirectly, but the logic is very simple: The display is divided into equally sized cells, where cell-width = screen-width / number-of-columns and cell-height = screen-height / number-of-rows. Using this formula you should be able to deduce where each cell is, right?If you want, you could also draw a simple grid using an
inline_script, if that would help you to visualize things:Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Thanks for the code Sebastiaan. the grid appears for something like 200ms then disappears, though. would it be possible to define how long the grid is displayed for, in the python script?
Many thanks!
Sorted. THanks Sebastiaan
