No video

Construct 3 Health - How to Add a Health Bar

  Рет қаралды 21,129

Xanderwood

Xanderwood

Күн бұрын

How to make 3 types of health bar in Construct 3.
Construct 3 tutorial series where I cover some of the most common game mechanics used in video game development and show you how to implement them using Construct 3.
Construct3: Health Bar. In this episode I show you how to create a player health bar using a tiled background, a sprite and text. The tiled background is great if you want to display icons such as hearts that can be lost of gained by the player. Using a sprite to simulate a gradual increase and decrease in health is another option, or simply displaying the health points as a stand alone number works just fine too.
Don't click this link: tinyurl.com/yx...
Follow me on twitter: / gamedev_alex
Play the games I make: xanderwood.itc...
Music Credit for this series: www.bensound.com

Пікірлер: 59
@XanderwoodGameDev
@XanderwoodGameDev 3 жыл бұрын
If you want me to continue making these easy game mechanic tutorials please like and subscribe ❤👍
@jasonmorgan661
@jasonmorgan661 3 жыл бұрын
Do you have any good templates? Maaaybe something like castlevania with the whip and 4 items? Id pay 25.00 for a template like that. There is one for metroud already in scierra.
@tauheedgamedev2388
@tauheedgamedev2388 3 жыл бұрын
Great tutorial, Showing 3 different ways of doing the same thing is genius, I might have to borrow that idea. Thanks 👍
@XanderwoodGameDev
@XanderwoodGameDev 3 жыл бұрын
Haha go for it
@souporwormgaming
@souporwormgaming 6 ай бұрын
This was super helpful, thanks ^-^
@XanderwoodGameDev
@XanderwoodGameDev 6 ай бұрын
Thanks for watching
@theartworkhub
@theartworkhub 3 жыл бұрын
Keep it up! You've helped me this past 2 days already, you're near too 1000 Subs as well! Good Luck and Thanks!
@XanderwoodGameDev
@XanderwoodGameDev 3 жыл бұрын
Thanks my friend I appreciate your support ❤👍
@thehaguy
@thehaguy Жыл бұрын
Thank you for your work @Xanderwood! You're helping me quite a lot!
@XanderwoodGameDev
@XanderwoodGameDev Жыл бұрын
No worries. 👊
@momchilbalev6062
@momchilbalev6062 3 жыл бұрын
Thank you for these tutorial series.
@XanderwoodGameDev
@XanderwoodGameDev 3 жыл бұрын
No problem, glad you are finding then useful 👍❤
@alejandrourbina6680
@alejandrourbina6680 3 жыл бұрын
Congratulations for the 100 subs!!! Un saludo desde Uruguay
@XanderwoodGameDev
@XanderwoodGameDev 3 жыл бұрын
Thank you so much
@CalGaming152
@CalGaming152 2 жыл бұрын
very helpful! Thanks for doing it 3 ways
@XanderwoodGameDev
@XanderwoodGameDev 2 жыл бұрын
👊
@jonahsgameroom6095
@jonahsgameroom6095 3 жыл бұрын
Really useful, thanks!
@XanderwoodGameDev
@XanderwoodGameDev 3 жыл бұрын
Thanks for watching
@jonahsgameroom6095
@jonahsgameroom6095 3 жыл бұрын
​@@XanderwoodGameDev How would it work if when the health bar is full and the player collides with an object that would normally add 1 to the health value, the value doesn't add to the player health when the bar is full?
@XanderwoodGameDev
@XanderwoodGameDev 3 жыл бұрын
@@jonahsgameroom6095 set another line of code that says. If player health => max health set player health to max health.
@halleru5068
@halleru5068 10 ай бұрын
Can you do an xp bar tutorial i am close but i cant get it to restart when it hits full
@XanderwoodGameDev
@XanderwoodGameDev 10 ай бұрын
Sure. Can you leave the request on my discord as this is where I look when making a new video.
@vicas197
@vicas197 4 ай бұрын
i cant find "trigger once while true" in "add 'system' condition" can you help me?
@XanderwoodGameDev
@XanderwoodGameDev 4 ай бұрын
It's an event not an action so I'll be on the left side of the event sheet. Also try typing it in the top right search when you goto system
@Ajaykumar-rn5rj
@Ajaykumar-rn5rj 3 жыл бұрын
thanks sir please make more videos for us
@XanderwoodGameDev
@XanderwoodGameDev 3 жыл бұрын
Sure. I will do. Anything in particular you want to see?
@yusuf3307
@yusuf3307 10 ай бұрын
why the bar disappear to center not to left bar
@XanderwoodGameDev
@XanderwoodGameDev 10 ай бұрын
Check your image point.
@mrfch2569
@mrfch2569 3 жыл бұрын
ohh thats how i forgot to do 1 thing
@Nicolas_G.
@Nicolas_G. 2 жыл бұрын
I followed every step and the bar doesn't change when my character takes damage. What could be the problem? Thanks!
@XanderwoodGameDev
@XanderwoodGameDev 2 жыл бұрын
Is the width of the bar set on an every tick?
@Pandagameshow
@Pandagameshow 2 жыл бұрын
How can i get the healh bar decrease slower? in your "lava" exemple de hp decrease really fast!
@XanderwoodGameDev
@XanderwoodGameDev 2 жыл бұрын
Subtract less from the playerHP. Try subtract 0.2 or 0.3
@Pandagameshow
@Pandagameshow 2 жыл бұрын
@@XanderwoodGameDev thks for the Help! Great tutorial
@KyleMurphyArt
@KyleMurphyArt 2 жыл бұрын
Really good work and thanks for your tutorials but I'm leery of the Every Tick condition (for the sake of system resources); maybe I'm overly cautious. I'd be tempted to instead call a variable on the condition to update the health bar/hit points/text but only when the player collides with an event causing damage. Any thoughts?
@XanderwoodGameDev
@XanderwoodGameDev 2 жыл бұрын
Yeah you could do it that way I suppose. I haven't seen any performance issues using the every tick though.
@LPMarvin99
@LPMarvin99 2 жыл бұрын
Great but I want to use this HP bar for the Health bar of my boss. The Boss have 1000 HP. The maximum width of my hp bar should be 860. How can I make this?
@XanderwoodGameDev
@XanderwoodGameDev 2 жыл бұрын
You'd need to set the 1000 HP to equal 100% using a variable and then reduce the HP by % when taking damage.
@mobileethan245
@mobileethan245 2 жыл бұрын
@@XanderwoodGameDev could you make a tutorial on this?
@XanderwoodGameDev
@XanderwoodGameDev 2 жыл бұрын
@@mobileethan245 I'll take a look and see what I can do
@mobileethan245
@mobileethan245 2 жыл бұрын
@@XanderwoodGameDev thanks. I’m asking this because the game I’m making has potentially infinitely scaling boss Hp as the difficulty goes up. For an example. I want to be able to fit an HP bar equal to 16,373,450 HP on screen. Does that make sense? 😂
@XanderwoodGameDev
@XanderwoodGameDev 2 жыл бұрын
@@mobileethan245 yeah that makes sense. I would imagine you'd need to assign it to a % so the boss will always have 100% but that would equate to different amounts based on the stage.
@shadowyt4073
@shadowyt4073 2 жыл бұрын
Im kind of struggling because im getting a bullet to do damage and not a object
@XanderwoodGameDev
@XanderwoodGameDev 2 жыл бұрын
What are you trying to achieve?
@shadowyt4073
@shadowyt4073 2 жыл бұрын
@@XanderwoodGameDev an enemy shooting me but I have a code
@XanderwoodGameDev
@XanderwoodGameDev 2 жыл бұрын
@@shadowyt4073 what do you mean a code?
@alessiarizzo8689
@alessiarizzo8689 Жыл бұрын
it doesn't work,the hearts don't disappear
@XanderwoodGameDev
@XanderwoodGameDev Жыл бұрын
🤔 it should work... did you double check everything?
@alessiarizzo8689
@alessiarizzo8689 Жыл бұрын
@@XanderwoodGameDev yes, yesterday i solved the problem,but know when hit the collisioner it removes just one time the hearts,and then doesn’t do it anymore
@spacee3796
@spacee3796 2 жыл бұрын
1:16
@kirashexenwerkstatt8289
@kirashexenwerkstatt8289 11 ай бұрын
@aaviosa1580
@aaviosa1580 2 жыл бұрын
aku merasa tertipu karena saat aku buat sprite hati ternyata menjadi sangat banyak ibuku marah
@jasonmorgan661
@jasonmorgan661 3 жыл бұрын
They could just easilly make a score snd health plugin.😑
@XanderwoodGameDev
@XanderwoodGameDev 3 жыл бұрын
Yeah but it's easy enough to make score and health functions 😁👍
@jasonmorgan661
@jasonmorgan661 3 жыл бұрын
@@XanderwoodGameDev i bought a template but it doesnt help. I got that super platformer template but i cant go in and change the health yet. Its a bit messy the way the guy sold this....
@jasonmorgan661
@jasonmorgan661 3 жыл бұрын
@@XanderwoodGameDev i just subbed i cant wait to xheck out your other tutorials.😎
@XanderwoodGameDev
@XanderwoodGameDev 3 жыл бұрын
@@jasonmorgan661 I have a template on the construct store for the platform game tutorial I have if that helps.
@jasonmorgan661
@jasonmorgan661 3 жыл бұрын
@@XanderwoodGameDev 😃thank you. Ill check it out .
Level Unlock Tutorial - Construct 3 Tutorial
8:36
Xanderwood
Рет қаралды 6 М.
Construct3 Boss Fight - Programming Boss AI
51:52
Xanderwood
Рет қаралды 13 М.
黑天使遇到什么了?#short #angel #clown
00:34
Super Beauty team
Рет қаралды 47 МЛН
Blue Food VS Red Food Emoji Mukbang
00:33
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 12 МЛН
Every construct 3 behaviour explained with examples in 15 minutes!
15:52
Game Design with Reilly
Рет қаралды 30 М.
An Aseprite Crash Course In 30 Minutes
31:47
AdamCYounis
Рет қаралды 1,1 МЛН
Creating a Health Bar with Animation in Construct 3
12:49
Ninja Panda U
Рет қаралды 4,9 М.
How Games Have Worked for 30 Years to Do Less Work
23:40
SimonDev
Рет қаралды 1,3 МЛН
A new way to generate worlds (stitched WFC)
10:51
Watt Designs
Рет қаралды 525 М.
Construct 3 - Enemy follow player - pathfinding tutorial
19:36
Xanderwood
Рет қаралды 27 М.
How to make a player shoot in Construct 3 | Construct tutorial
8:40
Hackingtons Code School
Рет қаралды 1,5 М.
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 4,6 МЛН
Things you didn't know about in Construct 3
10:18
Game Design with Reilly
Рет қаралды 6 М.