Shield Clicker Project Part 5

Sorry its been a while but we are back with another coding post and we are finishing our new 3 shop items. In the previous lesson we fully finished the code for our 2nd shield but we need a new multiplier and a new autoclicker. For my new autoclicker I will be using an anvil and for the multiplier I will just be using a multiplier logo.

Now for the more important part the code. We will start with the anvil code and its shop code as well.

So as soon as a player clicks on the shop button of the anvil it checks to see if they have at least 100,000 shields if they do it takes the 100,000 and then resets the text it then shows the anvil and begins the anvil auto commands. It then promptly deletes its shop elements. The anvil auto command is very similar to our original autoclicker function that simply adds 3 shields per set amount of time, times any multipliers that we have.

Now we need to add our code for our new multiplier

This code once again checks to see if the player has 333,333 shields and if so it proceeds it then subtracts 333,333 shields from the players total and updates the text and deletes its shop elements. As well as the old multiplier logo, and it then shows the new multiplier. Finally it sets my multiplier value to 3.

Thats going to be it for this blog I hope you enjoyed and make sure to check back soon for a new post.

2 thoughts on “Shield Clicker Project Part 5”

  1. Everything is very open with a precise clarification of the challenges. It was really informative. Your website is useful. Thanks for sharing!

Comments are closed.