This post is to document the creation of a cookie clicker clone project using Unity.

The images above show the start of my project. Before I could start adding UI elements, I had to set the aspect ratio of the screen. Due to making the game for mobile the aspect ratio has been set to 180 x 320. I then added a button, the one that will be pressed to play the game, and then added text so that the clicks could be tracked.

To add functionality to the elements I added before, I wrote a script. The script causes the pressing of the button to add 1 per click.

I then added a function to the button and linked the script so that it would actually function.

When following the tutorial I arrived at the point at which text would display when hovering over the upgrade button. When using Unity, I use VMHorizon as my laptop is high enough spec to run it, I have run into various problems using it but the worst is when I accidently click alt. When I do this it completely breaks everything and I have to log out and then back in. I did this forgetting that my work would be lost as I would be logged into a different machine.

After logging back in and not finding my work I tried again and again to remake the project but kept running into various errors in the beggining stages. I will update the page when I manage to get the project to work without running into an error.

After leaving the project for a while and coming back, I found the reason for my issues and moved on with the project.


0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *