
Learn to build an idle clicker game in Unity, including item holders, money flow, per-second GPS, exponential item costs, saving progress, and UI updates for unlocks and visuals.
Explore the concept of idle, clicker, and incremental games, from basic click mechanics to automatic income, shop systems, and exponential cost formulas, with Unity and scripting fundamentals.
Configure your Unity editor for effortless debugging by keeping the console visible and arranging the scene view, game window, project window, and inspector; save a layout for consistency.
Learn to create scriptable objects in Unity to define drink items as assets, with public fields for name, base price, multiplier, base income, and images, organized under an asset menu.
Calculate the next item cost with an exponential formula in unity: base price times the multiplier raised to the amount, then round to two decimals with a public float function.
Calculate income per item by multiplying the base income by the amount, producing a linear income growth, with the multiplier driving exponential price rises.
This lecture guides you through organizing textures, importing drink images, and creating a script table object named One to manage drink data with a water entry, price, and base income.
Explore editor scripting in Unity by building a custom editor for the Drink class that previews textures side by side using GetAssetPreview and a custom inspector.
Create eight drink items in Unity using scripted objects, set base prices and incomes, name and color each drink, and begin building the user interface for an idle clicker game.
Design a Unity ui canvas and event system for a 16:9 layout, then build an item holder with image, buy button, item name, gp s text, amount, and cost.
Create a scrollable grid UI in Unity by using a vertical layout group, a content size fitter, and a scroll rect to enable vertical scrolling, then save as a prefab.
Learn to add and configure scroll bars for a grid in Unity, linking them to the scroll rect, configuring horizontal and vertical bars, and ensuring automatic resizing with content changes.
Design the item holder by swapping in frame, water tank, and button sprites; customize the prefab and template to unify visuals across all items.
Connect and configure the item holder script to link item images, the buy button, and gold per second, amount, and cost texts in Unity. Use UnityEngine.UI namespace and prefabs.
Learn how prefab handling in Unity 2019+ has changed, open the prefab to view and modify its parts, drag components inside, and apply changes to the item holder script.
Create a buy button script in the item holder, expose a public id, and wire an on-click event to the buy function for purchasing items.
Create a Unity game manager to organize drink data, define a serializable drink class, and build a drink list with unlock and instantiated flags for inspector access.
Set up a Unity game manager with money, total money, gold per second UI, a grid item holder, and a ticker to increase money.
Initialize a money ticker with a coroutine in start to increment money every second from drinks with nonzero amounts, looping to calculate income per second and rounding the total.
Loop through the drink list to fill the item holder UI by instantiating unlocked drinks and updating sprites, names, amounts, gps and costs, and assign the correct buy button id.
Configure the game manager as a public static singleton with awake for access from any script, and fix coast calculations to reflect a 15 price when using the buy button.
Execute a public buy function in the game manager to power the buy button, validate funds, deduct cost, update item amounts, unlock subsequent items, and refresh the UI.
Animate a water tank in Unity by creating a scale transform animation clip, configuring transitions and a click event trigger, and testing in play mode.
Create a pop-up text showing per-click amounts as floating numbers that rise and fade, then destroy itself after the animation.
Create a Unity pop up text script that destroys itself after the clip length and shows the correct amount when clicked, wiring text and animator components.
Instantiate a pop up text prefab on click, parent it to water tank, and position it at the mouse to show amount. Disable loop time to fix flickering, then test.
Build a money bar in Unity with a UI image and two texts for money and gold per second, wired to the game manager and updated via UI methods.
Calculate gold per second by looping through each drink, adding income for any drink with amount above zero, and update the money and GPS UI at start and during ticks.
Learn to implement a save and load system for a game scene using a static SaveLoad class and a single player prefs key to store money and drink counts.
Implement a public static load function that returns a string by reading idle safe backs up key from player prefs, with a debug log 'game load', and return the data.
Enable automatic and manual saving by calling the save function through the save/load script, passing drink amounts and money, and optionally iterating the drink list.
Learn to implement automatic game saving in Unity by creating an auto save method, using invoke to repeatedly save after 60f seconds, and verify saves via the console.
Load game data by checking the save key, splitting the data by pipes, restoring drink amounts and money, unlocking next items when needed, and recalculating GPS.
Check the game manager to load saved data when the load key is pressed, calling the load game function. Ensure the list reflects current save data.
Finish loading by instantiating item holders for each id, checking unlocked status, and filling items with a dedicated function. Learn save and load mechanics, data parsing, and automatic progress preservation.
Implement a deactivate text script that activates on save, obtains the animator component, and uses invoke to deactivate the game object after the save animation length.
Format big numbers for money visibility in a unity idle game by updating money UI with string formatting across totals, costs, and gps, and test by simulating purchases.
Clean up ensures all UI graphics stay centered with preserved aspect ratio, removes item holder and debug lines, updates scripts, and applies changes to the prefab and saves the project.
Design a complete idle clicker interface with graphics, buttons, and a scrollable content list. Manage money and total prizes with animated, scripted objects, and learn setup for upgrades and achievements.
In this Unity Course you'll learn how to create Clicker, Idle, Incremental Games with Unity Game Engine. I will cover all basics you need to start such a game.
This course is made for beginner, which want to learn the basics of Clicker, Idle, Incremental Games.
We are creating a system to:
C# (Monodevelop)
create Scriptable Objects for our items to simplify processes
create a basic Editor Script to show Previews in the Editor
create connector Scripts to easy access User Interfaces
create auto - saving and loading the game
create a exponential function for the cost calculation
learn to round floats to 2 digets after komma
Unity (2018.2)
setting up our Editor, so we always see the important content
creating our own User Interface for the game using the Canvas System
implement scrollable content for our items / itemholder
implement a scrollbar
create an Object to click on
C# Fundamentals
I'll cover how to use and/or create:
Variables (float , int, bool, string ...)
classes
functions
if / else statements
for and foreach loops
Lists
Arrays
Coroutines
Course Material
i provide the following Material with the Course:
8 different Drink Graphics as *.png
1 simple Background
1 Itemholder Background
1 Watertank Graphic to click on
You have to write the code on your own, i do not provide the final scripts!
All other graphics for Menu's, Icons, Images or Buttons need to be created on your own.
All Materials i provide are for education only and should not be in your final release!
Conclusion
In the end of this course you will have a fully functional Idle, Clicker, Incremental Game.
Challenge
After you have created nice Menus, Buttons, and maybe additional content, upload the Game to any Gaming Website, Google Playstore, Apple Store or even Windows Store or Steam.
So what are you waiting for?
Let's make your dream game a reality!!
Level: Beginner
Video Course Length: ~4 hours
Unity Version required: 5.3+