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

How to install Apache HTTP Web Server On CentOS

Starting 2022 with an innovation bang 💥

Uploading photos/videos/files to AWS S3 using Swift 4

Deploy webserver on AWS using Ansible Dynamic inventory

Let’s Talk Leverage: Simple Tooling

Beginners Concepts in Kubernetes

Performance Testing using Apache JMeter

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: Make a game look beautiful-URP & Post Processing pt.1

My first game in Unity

2.5D Platformer setup: Movement and Collectibles

2.5D Platform: Calling for an Elevator