Create a Coin Pick-Up and Spending Mechanics in Unity

Offered By
Coursera Project Network
In this Guided Project, you will:

Use Prefabs to create identical copies of a preconfigured GameObject

Write C# scripts to manage in-game currency, update UI Elements, and instantiate particle effects

Use Triggers to detect collisions

Clock1.5 hours
BeginnerBeginner
CloudNo download needed
VideoSplit-screen video
Comment DotsEnglish
LaptopDesktop only

In this two-hour, project-based course, you'll learn how to create a currency pick-up mechanic for your game. We'll cover creating a simple heads-up display, setting up collectible coins and purchasable GameObjects, and writing C# scripts to manage the player's on-going balance. Please note: This guided project does not cover In-Application Purchases (“IAP”), which involves real money; it covers in-game money only. The guided project will introduce you to the following Unity concepts: - Particle Effects - Prefabs - Colliders, Triggers - Canvas, Text, Image - Coding techniques such as UI manipulation, Actions and subscribing to Events This project makes use of the poly-castle project created in Create Keyboard Movement Mechanics with C# in Unity. It is a complimentary course to this guided project and, although not a prerequisite, is recommended for a more well-rounded understanding of the concepts presented herein.

Skills you will develop

Video-game DevelopmentC sharp (C#) Programming LanguageUnity 3DUnityApplication development

Learn step-by-step

In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:

  1. Introduction and License Activation

  2. Create Collectible Component for our Coin GameObject

  3. Play a Particle Effect When the Coins are Picked Up

  4. Set Up the UI for Displaying Collected Coin Count

  5. Create PlayerCurrency Component

  6. Create Component for Purchasable Items

How Guided Projects work

Your workspace is a cloud desktop right in your browser, no download required

In a split-screen video, your instructor guides you step-by-step

Frequently asked questions

Frequently Asked Questions

More questions? Visit the Learner Help Center.