My journey becoming a Unity game developer: 2.5D Infinite Runner-Coin Collection and Display

Player able to collect coins with a tally onscreen.
Collectable object turned into a prefab.
Renamed the Collectable objects to Coin.
Canvas created for the Coin text onscreen.
Canvas set to Scale with Screen Size.
Set the Coin text position to the bottom left-corner through the Anchor Presets setting.
Coin text alignment set to the middle in the text field and color changed to white.
Changed the text field’s height to a larger size through the Rect Transform and Font Size changed to be bigger as well.
Positioned the Coin text field using the Rect Transform’s X and Y-axis, and changed the Horizontal and Vertical Overflow to Overflow.
UI Manager created to update the coin text onscreen.
AddCoins method created to add a coin every time the player collects one.
When the player collides with the coin, the player’s coin tally will increase onscreen.
Coins collected by the player.

--

--

--

Learning to become a Unity game developer.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Bet Matchmaking: Things to know about a fascinating feature

Deploying Perfect and Swift 4 on Ubuntu

Reef chooses Aleph.im to supercharge crosschain DeFi

Reactive Programming

An introduction to Python Strings!

How to Copy/Move/Migrate RDS Instances to the Same AWS Region and AWS Account without Downtime

Mapping of Software Design Patterns to Science

Velocity Anti-Patterns — Attempts to show more velocity

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rhett Haynes

Rhett Haynes

Learning to become a Unity game developer.

More from Medium

My journey becoming a Unity game developer: 2.5D Infinite Runner-Ledge Grab System-Pt2

Platformer: Collectible & Status Bar

Creating a HUD

Installing the Universal Render Pipeline in Unity 2021.2