Wednesday, 10 September, 2025г.
russian english deutsch french spanish portuguese czech greek georgian chinese japanese korean indonesian turkish thai uzbek

пример: покупка автомобиля в Запорожье

 

How to create a lives counter (health bar) in 2D Unity game | Easy Unity 2D tutorial.

How to create a lives counter (health bar) in 2D Unity game | Easy Unity 2D tutorial.У вашего броузера проблема в совместимости с HTML5
#UnityTutorial #SimpleUnityGame #unitylives #unitylivescounter In this video I'm going to show you how to create a simple health bar or lives counter in your Unity game. The BEST MECHANICAL KEYBOARD Metoo Zero for the price. I use it. And I must say that it’s perfect! https://amzn.to/2ShrzYb We begin from adding three little health hearts to the game view that represent our health bar. Then we add a health increasing zone represented by big heart. This big heart has a box collider as a trigger. C# script attached to healing zone contains only one method which is OnTriggerEnter2D so if something collides with this heart then health is increased by 1. Next we add a player which has a simple movement script that takes input from arrow keys and gives a corresponding velocity to player game objects rigid body 2D component. Death zone is represented by a skull which also has a collider with isTrigger option checked. C# script attached to the skull decreases health amount by one if player collides with the death zone. Game control game object anable and disable hearts sprites and turn on the game over sign as health point goes up or down to 0. Consider purchasing my Ultimate Udemy course with great discount https://www.udemy.com/how-to-make-games-with-unity-software/?couponCode=14-99-SALE-GOOD-LUCK You can support me through www.patreon.com/alexanderzotov or here https://www.paypal.me/AZotov Thank you) www.vecteezy.com - best free vector graphics library ever! What this video is about and what it can be used for also: unity 2d tutorial, unity tutorial, health bar unity, How to create a lives counter (health bar) in 2D Unity game, lives counter unity, health counter unity game, increase health unity, add health point, add health point unity, deduct health point unity, health bar 2D unity game, how to make health bar unity, how to make lives counter unity, health heart unity game, ontriggerenter2d, learn unity fast, unity tutorial, how to make games with unity, unity how to make game, unity how to make 2d game, not as good as brackeys but good as well.
Мой аккаунт