79411937

Date: 2025-02-04 13:59:57
Score: 1
Natty:
Report link

Seems like, there is no click event, and one need to put input handling in a global update function that will be called by p5play for every frame.

function update() {
  if ( sprite.mouse.hovering() && mouse.presses('left') )
    /* mouse press event! */;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: user1768761