Create 3D Collectables In Unity

Today I am creating floating coin collectables for my new 2.5D platformer.

A coin collectable worth 1 point
A coin collectable worth more than 1 point

Today’s Objective: Create a simple coin collectable for my new 2.5D platformer game.

The Code:

Create a new C# script called something like “Collectable”.

Create the variables which will control the collectable’s behavior.
Calculate and apply the movement changes to the collectable
Floating and spinning
When the player touches it, collect the collectable
Collection by the player

A simple and very nice looking collectable for any game: Complete!

--

--

--

Unity game developer / C# Programmer / Gamer. Australian (Tasmanian) indie games developer for 10+ years. Currently looking for games industry employment.

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

Recommended from Medium

Creating A 6-Sided Skybox In Unity

Structuring validation errors in REST APIs

How to use custom fonts with TailwindCSS

Deploy a Containerized ASP.NET Core App to Heroku using GitHub Actions

When and why should you use a Backend as a Service (BaaS)

C# LINQ — “Average”

Managing MDM Projects II — Development, Testing and Deployment

How to Speed up App Delivery With an Integrated Production and Development Server Setup

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
Vincent Taylor

Vincent Taylor

Unity game developer / C# Programmer / Gamer. Australian (Tasmanian) indie games developer for 10+ years. Currently looking for games industry employment.

More from Medium

Creating A Scene Template In Unity 2020.2 And Above

Damage VFX using Animated Sprites in Unity

Creating Rewarded Video Ads in Unity

How to switch between Cinemachine cameras in Unity