Mouse is down?

how do i check when the mouse is down?
i am trying to make a game that detects if the mouse is down, and its not working

I’m guessing you want to detect when the mouse is down at any point - not just when holding the mouse down on a specific object? (If you only want to do it for a certain object, you can just go to the mousedown script for that object)
For detecting when the mouse is down at any time, you could try this- in the update script of a frame, run a mouse down event. It’s located under Events, which is at the very bottom of the ‘references’ in the left of the code panel. You’ll also want to add a mouse released event as well, for when the mouse is not down.
mousedown-pic

Full example:
mousedown-example.wick (2.0 KB)

2 Likes