Discord
Login
Community
DARK THEME

Can anyone explain how to make upgrades for a clicker game?

I'm making a clicker game but I don't know how to get the button right. So far I only have the button. So it would be really useful if someone could explain. Because, I tried to make the upgrades collectibles instead of upgrades but that didn't work, so if anyone could explain, please reply.

Thanks,

Sam

Ps. here's the link to the game. https://microstudio.io/i/P1X3L_2012/cookieclicker/

if you mean upgrades that make you gain more per click, you could simply increase a variable that's added to score. if you want to make an upgrade that automatically "clicks" you could make a function for them that automatically adds a certain amount to the score * amount of upgrades

and for the button, i'd recommend using the hit() function from the collisions library to check if the mouse is over a certain area and then check if mouse.press is true. then fill it with what you need for the upgrade

thanks I'll try it out

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community