Clicker game help

Hello! I need help making a clicker game. I couldn’t make one myself, so I decided to come here instead. so far I’ve made the designs and some code but I still need help.

Making a clicker game is a simple process once you get to learn it :)

First thing you’ll wanna do is make a variable for clicks in a default script, for example, I’ll use “clicks.” I’ll also connect it to the window so that I can refer to it from anywhere in the project, and I’ll set it to zero so that the user starts with zero clicks.

window.clicks = 0;

Next step, you’ll want to find the object that you want the user to click. In that object, add a mouseclick script, and have the variable for clicks increase by a certain number every time the object is clicked. For e=this example, I’ll have the number of clicks increase by one.

window.clicks+=1;

Lastly, you might want a place to display the number of clicks the user has. Create a text object, give it a name (in this example, I’ll use “text”), and in the update script (of a seperate object or the main frame), make the text set to the number of clicks.

text.setText("Clicks: "+clicks);

After that, the clicker game should work well, and you could add in other touches to it to make it more unique.

If you still need help, or would like an example file, just let me know, I’d be glad to help :+1:

1 Like

Thank you! i really needed that. i saw your clicker that you made. leef clicker? yeah that one.

1 Like

Can you send me a exmple project? like a .wick file?

Of course! Here’s a quick clicker project example:

My Project11-4-2021_23-18-19.wick (2.2 KB)

I tried to keep the project simple (made it in a couple of minutes)
I hope this helps, otherwise, feel free to ask any questions :)

1 Like

Thank you. I’ve finally made my clicker game

1 Like