I'm currently attempting to create a small game using PD and Gem. The idea is that the player gets a blank Gem window and has to locate an invisible object somewhere in the window by clicking around.
Each click plays a sound file that varies in volume depending on how close the player is to the object (louder is closer). The player only gets a certain number of clicks to find the object.
The part I'm struggling with at the moment is how to detect whether or not the object is being clicked. I've created the gemmouse object so PD is aware where the mouse is and when it is being clicked, but I don't know how to make something trigger when the mouse clicks on the object specifically.