Progress Update: Coin Distraction And Voice Overs

I have added a coin distract feature that allows the player to distract the guards. This is done in a similar way to the player walking. You check for the right mouse button to be pressed and check if the player is not moving. If both of these are true then the coin will be instantiated where the player right clicks. The player is limited to one coin per game.

I used a coroutine to disable the ability to walk while the coin toss animation is played.

I also created a modular voice-over script to play the audio clips when the player hits the corresponding trigger.

--

--

--

Unity Game Developer and C# Programmer

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

Recommended from Medium

Why and how to write clean code

Complete Resources for Every Developer to Crack a Job Interview

How To Fix Meizu M3 Not Charging [Troubleshooting Guide]

WEB SERVER USING EC2 INSTANCE AND AWS EBS VOLUME:

From Zero to Web Developer in Less than a Year (Part I)

How Ricky helps his clients start a website real easily

Detect and Find Faces in an Image in Python

How I Made an E-Commerce Website with Django

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
Matthew Clark

Matthew Clark

Unity Game Developer and C# Programmer

More from Medium

Setting up a platformer project in Unity

Platformer: Free Falling & Landing

Free assets to use with Unity

Unity new Input System : Tips to create a “clean” Player Input System(Part XI)