How Do I Make it so that only when I CLICK a button, It works?

Hi. I Have been making this game lately and I have a lot of buttons in it. However, I don’t know how to make the button function when only the cursor CLICKS the button. So far, All I can do is make the button function when the cursor comes over the button. Can I please have some help with this?

1 Like

You need the condition mouse/touch is down.
Use it with trigger once and have all your cursor is on button events as a subevent of it.

1 Like

So what would the event look like?

1 Like

is there javascript code for that?

1 Like

a little bit more effort on your side to search for events you need please.
its not hard to find:


1 Like

Ok, thanks! I will put in more of an effort when I search.

1 Like