Make an Undertale Battle in Scratch (PART 8: Health Bar)

Sdílet
Vložit
  • čas přidán 8. 07. 2024
  • Check out Futures Lab events at City of Swan Libraries:
    swanlibraries.com.au​​
    Here is the Scratch Project:
    scratch.mit.edu/projects/3987...
    Leave a comment if you have any questions, any problems, or any requests for future streams :)
  • Věda a technologie

Komentáře • 89

  • @BlackbatsSince2019
    @BlackbatsSince2019 Před 2 lety +10

    its a damn pain making the healthbar perfect

  • @makaylarivera2625
    @makaylarivera2625 Před 2 lety +2

    i love this

  • @JeffreyBloxer
    @JeffreyBloxer Před 2 lety +3

    actually theres a more pro way to do it, ok so
    first u make a green bar sprite and a red bar sprite. and after you gonna code this;
    if then
    move red bar for 1 second (HPsystem) to -5, 0
    thats the code I made

    • @futureslab4206
      @futureslab4206  Před 2 lety +1

      Great idea! I'm planning on doing something like that in a future episode actually, especially once we're doing KARMA damage. You use a black bar to cover the red bar, I'm guessing?

    • @JeffreyBloxer
      @JeffreyBloxer Před 2 lety +1

      @@futureslab4206 like when a bone touched the X cordinate of green bar gonna move to the left by , for 1 second and the heart flashes, so basically you dont have to create 1000 of costumes for the health bar to make it look realistic
      Also I love your ideas for scratch undertale, without your channel I would stuck in the paradox of raging and failure lol.
      And like, you create a black bar, make it to go to front layer, and dont touch green bar, it can stay in his own layer, and make the red bar to go to the down layer, black bars height can change depending on the green bars height.
      Also theres the poison attacks of Sans that makes HP bar go purple, Im thinking that how I can make it work, kinda hard to think because scratch sadly doesnt have the shrinking the bars, so its kinda hard to think, maybe creating a pink bar and make it go to down layer and making it go to left by the ?
      I hope you understanded well my friend, because I got bad grammar of english lol 👍

    • @JeffreyBloxer
      @JeffreyBloxer Před 2 lety

      @@futureslab4206 I edited the comment btw

  • @johnkyle8283
    @johnkyle8283 Před 2 lety +1

    In Deltarune, it doesn't matter. Once it is negative health or it is zero, the character is considered down.

  • @realBallerman93
    @realBallerman93 Před 2 lety

    Having a slight problem.. my player takes 5 damage and when i have ceiling of player current hp / 5 then when i press play the health bar is already down.. any solution to this? I have 21 diffrent costumes and it still shows im alive when the health bar is red

  • @sarcasticvenom4406
    @sarcasticvenom4406 Před 2 lety +3

    Maybe you could hide the enemy and box sprite when you die and they show at the start of your game?

  • @UrAvgDMG
    @UrAvgDMG Před 2 lety +2

    I will try to make a sans like game with your videos 😀 ❤️

  • @sbfshadoe9918
    @sbfshadoe9918 Před 2 lety +4

    hope you reach 1k subs soon :DD

  • @TheSuperbasset
    @TheSuperbasset Před 5 měsíci

    attacks ive made to my william afton fight;
    crosshair (gun attack)
    springlock attack(blood rain)
    knife surround
    following ghost
    and last but not least; axe slash

  • @robloxsandboxgameplay1571

    hey is it possible to like make the hp bar - by 1 per hit

  • @jmc2008
    @jmc2008 Před 2 lety

    I'm having a little problem when I die it just regains all of its health back i only have 10 sprites but i use to have 16

  • @henrynguyen815
    @henrynguyen815 Před 2 lety +2

    Thank you so much you has help me alot , if i can meet you in real life i must say thanks to you, keep it up !!

  • @g-ray4088
    @g-ray4088 Před 2 lety +2

    i have a problem, whenever i get hit by attacks, the hp goes down a tiny bit more then what i told it.
    (around 0.0000000000000001)
    i also have a healing system for attacks, (which is just increasing the hp by 0.1 every half second) which also does that. (but heals a tiny bit less then what i told it)
    is there a possible way to round that?

    • @futureslab4206
      @futureslab4206  Před 2 lety

      Could your healing system be causing the problem with the extra 0.0000000000000001 damage?

    • @tetriscat66
      @tetriscat66 Před 2 lety

      Would putting “set Player HP to round(Player HP)” right after you heal/do damage work? (instead of round, you could do ceiling or floor to always round up or down if that works better)

    • @futureslab4206
      @futureslab4206  Před 2 lety +1

      @@tetriscat66 That might work. Have you tried it yet?

    • @tetriscat66
      @tetriscat66 Před 2 lety

      @@futureslab4206 I had the same issue one time a while ago and I’m pretty sure this is how I fixed it

    • @tetriscat66
      @tetriscat66 Před 2 lety

      @@futureslab4206 I had the same issue one time a while ago and I’m pretty sure this is how I fixed it

  • @sufferixity
    @sufferixity Před 6 měsíci

    does this also work when the character is default at 80 HP

  • @tonitomi67
    @tonitomi67 Před 8 měsíci

    I'm having a little problem when i start the game it allways goes to costume number 10 (90 HP) insted of 11 (100 HP) any help? (nvm i fixed it)

  • @AllietheArcanine
    @AllietheArcanine Před 2 lety +1

    I'm doing this based off of a character that does 5 damage per hit and that player hp is 92. For some reason my costumes are working properly and it taking it to my 5th on and not my 19th (My full hp one). Due to the sheer amount of damage done and hp that the player has I'm not sure if I did this right. Instead of at the full 92 hp costume it is going to my 22 hp costume for the health bar when i start up the game. I don't know what I did wrong and I'm confused and I need help please. I'm sorry.

    • @futureslab4206
      @futureslab4206  Před 2 lety +1

      How strange! If you can tell me your Scratch name and the name of your project I can look it up and see if I can figure out what is wrong, if you like?

    • @AllietheArcanine
      @AllietheArcanine Před 2 lety +1

      @@futureslab4206 thanks but I think I ended up fixing this though. It looks fine to me now.

    • @futureslab4206
      @futureslab4206  Před 2 lety +1

      @@AllietheArcanine Good job :)

    • @AllietheArcanine
      @AllietheArcanine Před 2 lety +1

      @@futureslab4206 thanks ^^

  • @johnkyle8283
    @johnkyle8283 Před 2 lety +1

    Also, can you make a hp counter instead of a variable?

  • @ChrisGames1997
    @ChrisGames1997 Před 2 lety

    maybe the KARMA and the losing 1 hp every frame like in the sans fight?

  • @TechmaOffical
    @TechmaOffical Před 2 lety +11

    Have you thought of adding the heals from the omega flowey fight?

    • @futureslab4206
      @futureslab4206  Před 2 lety +8

      Oooh, good idea, I'll add it to the list!

    • @foxknownplayz2722
      @foxknownplayz2722 Před rokem

      @@futureslab4206 Heya, futures lab, I have an issue, when I hit an attack, it doesn't switch the costume to what my health is supposed to be when I get hit, could you help me?

    • @vasgaming1555
      @vasgaming1555 Před rokem

      @@foxknownplayz2722 I can help you with another way to make a health bar i made one with clones Unfortunately having high amounts of clones may cause lag which is 1 per max hp you have but if your down i could help you with it

    • @vasgaming1555
      @vasgaming1555 Před rokem

      @@foxknownplayz2722 Also you can always use 1 clone for more then 1 hp basically you can make the bar less smooth but less lag

    • @foxknownplayz2722
      @foxknownplayz2722 Před rokem

      @@vasgaming1555 what I have 200 hp?

  • @Ghblsish
    @Ghblsish Před 2 lety

    Any plans on a tutorial on how to make an Undertale fan game?

  • @FireDrawsSomething
    @FireDrawsSomething Před 2 lety +2

    15:10 zed XD are you indo?

  • @morganisapro6
    @morganisapro6 Před rokem

    When my health is 100/100 it shows the costume for 90/100
    is there a fix for this?
    edit: fixed it! just had to add 1!

  • @CoolMan-gu6hb
    @CoolMan-gu6hb Před měsícem

    I got a problem, when I get hit, my screen shake moves my HP bar in random places. Could you give me a bit of a solution?

  • @chuyhaphuyet6643
    @chuyhaphuyet6643 Před 2 lety +2

    You can make blue soul ?

  • @salami_fart
    @salami_fart Před 2 lety

    When i hit the green flag at 12:40 the hp sprite always switches to the 90 costume. how do i fix it?

  • @knail1000
    @knail1000 Před rokem

    i try code it but fail ,HP never decrease when hit

  • @ukaszsuszek1090
    @ukaszsuszek1090 Před rokem

    18:35 EXEMPLARZ DELTARUNE

  • @bluetntgr2435
    @bluetntgr2435 Před 2 lety +1

    i made more sprites for the health bar and i tweaked the coding to get it two times more accurate😀

    • @futureslab4206
      @futureslab4206  Před 2 lety +1

      Good job!

    • @morganisapro6
      @morganisapro6 Před rokem

      ​@@futureslab4206 I made mine 4x more accurate by increasing it by 2.5 each time!

  • @makaylarivera2625
    @makaylarivera2625 Před 2 lety +1

    i subed

  • @lexievlogs2492
    @lexievlogs2492 Před 2 lety +1

    Excuse me? I found a glitch. Whenever I get to this part of the tutorial, I follow everything perfectly, but when I test the health bar, it ALWAYS starts me off with 90% health, when I'm at 10% health, the bar shows 0, and when I'm dead, the bar shows 100%. What am I doing wrong? What is the glitch, and how do I fix it? Thank you for your time.

    • @futureslab4206
      @futureslab4206  Před 2 lety +1

      Make sure the costume with 0 HP is costume number 11. Does that fix it?

    • @7nulBM
      @7nulBM Před 2 lety +1

      @@futureslab4206 my health starts at 100 and whenever I start the project it starts at 0%

    • @futureslab4206
      @futureslab4206  Před 2 lety +1

      @@7nulBM How many costumes do you have in your HP Sprite? 11?

    • @7nulBM
      @7nulBM Před 2 lety

      @@futureslab4206 I deleted some to make it 11

    • @futureslab4206
      @futureslab4206  Před 2 lety

      @@7nulBM Ok, are they in the correct order? Is the 0 HP costume number 11?

  • @thatyoungdude4557
    @thatyoungdude4557 Před 2 lety

    Idk how to zoom in lol

  • @sinistercreator9485
    @sinistercreator9485 Před 2 lety +1

    Unfortunately, i have mastered pen so ye
    Ain't too important for me (i've changed my bg cuz i also needed glow and stuffs)
    Also there is indeed another way, this is just ineffective
    Add 2 black boxes beside the hp bar, infront of both of them
    Make the green change the x depending on the hp (using set x to (hp × (idk just test))
    Also you indeed CAN make ur custom number ratehr than the scratch's number

  • @guest4036
    @guest4036 Před 2 lety

    my health bars doesnt work :(

  • @skylarbutt6176
    @skylarbutt6176 Před 2 lety +2

    plz make a friday night funkin in scrach plz : }

  • @NoFaceOCHOCHAMA
    @NoFaceOCHOCHAMA Před 10 měsíci

    18:39

  • @smiling_winnerfan7200

    Making the health say 100 / 100 wont work good it just does nothing

  • @mittsykittycatextra1980

    MORE

  • @brickmaster8701
    @brickmaster8701 Před rokem

    Why does it not work
    Oh, wow… I just found an easier way to do it and fixed it

  • @josedavidcuellobarreto5987
    @josedavidcuellobarreto5987 Před 9 měsíci

    Doesnt works

  • @dindjarin2799
    @dindjarin2799 Před 2 lety +2

    first`comment

  • @Jinxer.
    @Jinxer. Před rokem

    Hey do you have discord? I have a problem that i want to show to you.