HOW TO MAKE A MOBILE 2D CLICKER GAME IN UNITY TUTORIAL #06 - MANAGING PURCHASE UPGRADES - androidgamestore.net

HOW TO MAKE A MOBILE 2D CLICKER GAME IN UNITY TUTORIAL #06 – MANAGING PURCHASE UPGRADES

Jimmy Vegas
Views: 30068
Like: 337
In this unity tutorial we write some code to allow us to purchase upgrades and manage them.
✦ Subscribe:
✦ Patreon:
✦ FREE Assets:
✦ Facebook:
✦ Twitter:

———————————–

✦ Start your game development career today and learn how to make a game through the power of Unity. Every Unity Tutorial at JV Unity costs NOTHING from you, and any support received through YouTube, Patreon or Facebook is greatly appreciated.

———————————–

SPECIAL THANKS TO OUR LATEST PATRONS INFERNOMC, RICHARD WILDERSPIN & JASON LEE STANLEY @
—————–
Who Is Jimmy Vegas?
—————–
Jimmy Vegas is one of the top YouTube tutorial developers. In depth Unity Tutorials teaching you how to make a game in unity 3d! My unity tutorials include development, programming in C#, coding logic and more. For beginners, it’s easy how to learn unity with tips and tricks you can make a game for FREE. I provide FREE assets for you to use and learn.

Start your game development career today, for free. #UnityTutorial

24 Comments

  1. I'm not sure what I did wrong, after this 6th tutorial my game keeps freezing as soon as I get to exactly enough money to purchase my baker. Nothing is clickable and just frozen.

  2. Can you show us how to share or upload our unity project?

  3. Can you show us how to share or upload our unity project?

  4. Quick question: Why use two almost the same buttons if just setting one to interactable or not depending on the ability of player to purchase? This way you have only one button to take care of.

  5. Jimmy any chance of doing a tutorial on change of music in a game,ie in a tense situation the music changes?

  6. I am from India but I liked your video because you describe very good

  7. I can't wait till the next tutorial… I bet we will wait for weeks

  8. thankyou so much man i cant thank you enough love the vids

  9. Is this series going to be complete? I've seen a lot of series like this that end in the middle… you won't do that to us, right?

  10. Thanks for creating this tutorial. Will you add any feature to the fake/real buttons that will need both buttons? Because you could achieve the same result using Button.Interactable function. Thanks again!

  11. You actually could do
    nameOfObject.GetComponent<Button>().interactable = true/false
    instead of making fake and real buttons, and of course you would need to attach UnityEngine.UI.
    Getting the same result you did, found it out on the second day of my Unity journey (second day of learning). Is there something that I should know about using it or it's just your preference to do it differently?

  12. When my "Buy Auto Code" button is meant to cost $200 it still costs $100. My Script :
    using System.Collections;

    using System.Collections.Generic;

    using UnityEngine;

    using UnityEngine.UI;

    public class GlobalAutoCode : MonoBehaviour

    {

    public GameObject fakeButton;

    public GameObject fakeText;

    public GameObject realButton;

    public GameObject realText;

    public int currentCash;

    public static int autocodeValue = 100;

    public static bool turnOffButton = false;

    void Update()

    {

    currentCash = GlobalCash.CashCount;

    fakeText.GetComponent<Text>().text = "Buy Auto Code – $" + autocodeValue;

    realText.GetComponent<Text>().text = "Buy Auto Code – $" + autocodeValue;

    if (currentCash >= 100)

    {

    fakeButton.SetActive(false);

    realButton.SetActive(true);

    }

    if (turnOffButton == true)

    {

    realButton.SetActive(false);

    fakeButton.SetActive(true);

    turnOffButton = false;

    }

    }

    }

  13. Script for fake and Real button dont working! Auto cookie working without any money!

  14. Hey Jimmy!

    You are awesome dude! Keep up the amazing work!

  15. When i make that upgrade and buy it my cash going to negative

  16. Why not just add an else in the GlobalBaker, and change the button to fake there? turnOffButton variable seems unnecessary to me

Leave a Reply

Your email address will not be published.