Тёмный

Unity 2D Platformer Tutorial 24 - Health Bar (Part 3) 

Daniel Wood
Подписаться 20 тыс.
Просмотров 10 тыс.
50% 1

This video demonstrates how to set up a health system and health bar in a 2D platformer game in Unity.
Code for this tutorial -
Health script: github.com/danielkwood/Unity2...
HealthBar script: github.com/danielkwood/Unity2...
Updated PlayerController script: github.com/danielkwood/Unity2...
Unity website - unity.com
GitHub - github.com/danielkwood/Unity2...
Free Pixel Space Platform Pack - assetstore.unity.com/packages...

Хобби

Опубликовано:

 

18 окт 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 27   
@sloan1332
@sloan1332 10 месяцев назад
Thank you very much!!! Entire project was a blast and you didn't "it will make sense later, just go with it." You really explained everything in a well thought out manner!!! 10/10
@mareimorsy3182
@mareimorsy3182 2 года назад
Whaaat! ... I'm glad that you're back after all those years
@Qurex
@Qurex 2 года назад
Simple and easy to understand. Tanks a lot.
@andrewaustinanderson5378
@andrewaustinanderson5378 Год назад
This is a great tutorial. it has been really really helpful. I hope you make more! I would love to see your take on a death animation as well as a start and pause menu. Thanks!
@danielkwood
@danielkwood Год назад
Thanks! I hope to make some more videos soon.
@baselpro5228
@baselpro5228 2 года назад
Thank you for these tutorials keep it up 👍
@alexisryan9143
@alexisryan9143 2 года назад
you sir , are a wonderful teacher
@eyyjp
@eyyjp Год назад
Hope we get more of these!
@sabrinahawkesworth2547
@sabrinahawkesworth2547 Год назад
BEST SERIES! PLEASE MAKE MORE
@Vibinq_
@Vibinq_ 2 года назад
You are F. Ing underrated plz uploadddd
@farooqahmed5575
@farooqahmed5575 2 года назад
Best game Teacher..
@bunnnycast1055
@bunnnycast1055 Год назад
this whole videos course was so useful and amazing. you dont make video about ladders ?
@pupspups4885
@pupspups4885 2 года назад
Pleeeease make another Video, i can't wait for it😃
@TheTokoshi
@TheTokoshi 2 года назад
Great please keep recording
@attrick4433
@attrick4433 Год назад
How would I change the sprite instead of the colour when the health gets below a certain point? I am using heart sprites instead of a bar.
@farooqahmed5575
@farooqahmed5575 2 года назад
Please continue kind sir..
@rahuzen5481
@rahuzen5481 2 года назад
are you still doing the project ? kinda stuck with how do i state "dyin" when hp is depleted.
@muraterguzel8795
@muraterguzel8795 2 года назад
Nice tutorials!! I hope you continue this game or different projects
@boraned
@boraned Год назад
Adam vallaha 1 yıldır video atmıyo amkoim. Keşke atsa, kral adam.
@pentagramburns
@pentagramburns Год назад
Quick note. My HealthBar variable wasn't showing in my player inspector panel... I went edit, preferences, external script editor and set Visual Studio to my default script editor. Upon reloading my c# scripts, I noticed the monoBehaviour/Vector3 etc had now all turned green, and back in Unity, the healthbar variable popped up in the player inspector panel... just in case anyone is having a similar issue. Also, thanks for the tutorials, learning a lot!
@esra_a_shan2535
@esra_a_shan2535 2 года назад
continue I am right behind
@Genesis12372
@Genesis12372 Месяц назад
Assets\scripts\NewBehaviourScript.cs(90,5): error CS0106: The modifier 'private' is not valid for this item. any help
@sniper-cm3df
@sniper-cm3df 2 года назад
Tutorial for ladders script please?
@unknownberserker8464
@unknownberserker8464 Год назад
How can I do the inverse?, When my player touches something the life goes up
@hiepao7839
@hiepao7839 2 года назад
you can do about the game over
@RedaHaskouri
@RedaHaskouri Год назад
hi sir! please if you can help me! i start to make game like a puzzle game ( INSIDE ) but mine is 2D not 3D like INSIDE. my game is adventure puzzle game exactly like INSIDE. but theres my some problems if you can help me in tutorial video bcs my english its so bad. and you can help many people. ( i wish to help bcs i was asked many youtubers and no one care about my problems ) .. theres my problems : i dont know how exactly i make a smouth dynamic physicaly moves of player ( jump .., climb and hang ledges.., Climb and Swing on Ropes..) i saw a thousand of tutorials but all those just learn you how to make a simple code or not exactly what i want , bcz i need i movement like INSIDE .. and you know game is for puzzles so i need dynamic and physics in player movement.. this is one of my big problems. ( if you have a bonus of some physics puzzle to help me more ) game is fully 2D. please help me in tutorial video to make me understand and help me. i really 2 years and a thousand videos and no saw what i need. please help sir please!
@tonfuz
@tonfuz 12 дней назад
worst tutorial ever didnt even add a respawn when the health hits 0