GameMaker Tutorial – 2D Hack-n-Slash #22: HUD PART 2



NEW Tileset Pixel Art Course:

Course Resources:

Follow me on Twitch for GameMaker livestreams:

Follow my twitter:
Like my Facebook page:
Follow me on Tumblr:
GameMaker Tutorials on Reddit:

Thank you all so much for your support!

Nguồn: https://popadrados.com/

Xem thêm bài viết khác: https://popadrados.com/game/

25 thoughts on “GameMaker Tutorial – 2D Hack-n-Slash #22: HUD PART 2

  1. It's been a long time since you posted this, but within your resources there is "spr_bar".. so just put its origin to top left and add "draw_sprite(spr_bar, 0, _hpX, _hpY);" and there will be a thick outline around the hp bar)

  2. I seem to be having an issue with the health bar position, it seems to be about half a bar too high. The drawn outline appears to be in the right position though.

    Would love to talk through it with someone to find a solution.

  3. Congratulations ! nice tuts series, in the case of this part, why dont you used a script do draw that text in a box ?

  4. I highly recomend the Evil Dead Font look it up its free to download and really fits the theme nicely.

  5. First of all, thank you (HeartBeast) for your videos and assets,

    If anyone would like to have an exact code for the health bar drawing lines, they will be…

    Disappearing Health Bar:
    —————————————-
    Just modify the Lerp as in else, like…
    }else{
    draw_hp = lerp(draw_hp, -0.15, 0.2);
    }

    Hard Edges for Health Bar Lines:
    —————————————————-
    draw_line_width_color(hp_x-1, hp_y-1, hp_x + hp_width, hp_y-1, 1, c_dkgray, c_dkgray);
    draw_line_width_color(hp_x-1, hp_y + hp_height, hp_x + hp_width, hp_y + hp_height, 1, c_dkgray, c_dkgray);
    draw_line_width_color(hp_x-1, hp_y-1.5, hp_x-1, hp_y + hp_height + 0.3, 1, c_dkgray, c_dkgray);
    draw_line_width_color(hp_x + hp_width, hp_y-1.5, hp_x + hp_width, hp_y + hp_height + 0.3, 1, c_dkgray, c_dkgray);

    Curved Edges (as in pixel art) for Health Bar Lines: (personally used this one)
    ——————————————————————————–
    draw_line_width_color(hp_x-1, hp_y-1, hp_x + hp_width, hp_y-1, 1, c_dkgray, c_dkgray);
    draw_line_width_color(hp_x-1, hp_y + hp_height, hp_x + hp_width, hp_y + hp_height, 1, c_dkgray, c_dkgray);
    draw_line_width_color(hp_x-1.4, hp_y-0.8, hp_x-1.4, hp_y + hp_height-0.5, 1, c_dkgray, c_dkgray);
    draw_line_width_color(hp_x + hp_width+0.5, hp_y-0.5, hp_x + hp_width+0.5, hp_y + hp_height-0.5, 1, c_dkgray, c_dkgray);

    I hope people can benefit from these, and good luck everyone. 🙂

  6. Would you mind creating a Godot RPG tutorial, with the ability to affect choices. Thanks!
    Also congratulations on the baby!

  7. Hello, Ben and congratulations! I am wondering if there is any way to visualize midi files in game maker. Is there a way to make objects spawn when specific notes are played in the midi sequence? I'm looking to create a rythm game, kind of like guitar hero. Thanks and keep up the good work!

  8. These tutorials are great! I'm would have paid you for these courses but alas I can't [country problems 🙁 ], but Can you please do these on GODOT!? there is no good godot tut out there! thank you.

  9. Ben, I love your videos! Could you please make a video on how to do this stuff without image_xscale? At a certain point in your tutorials, the coding stops working for me, because I am not using image_xscale for left and right movement; I'm using a left animation and right animation, thus, my hitbox will only show up on one side, the rolling state doesn't work properly, etc. If there's a guy on the internet that could teach this effectively, it would be you!

  10. I've bough so many courses from you over the years and honestly you are one of the best Game Maker teachers out there. Worth every penny I spent and I've become a better programmer from it too. Before all I did was web stuff mainly in bootstrap but the amount of help your book and your courses have helped me stay motivated and improve my workflow is truly amazing and I want to thank you for that. Keep being awesome and teaching people.

  11. Hi, I saw your channel and learn a lot of gms2, thanks a lot, and I notice there is a game seems very like this tutorial, the game named "Unworthy", I found it on Steam, it's that cooperate project?
    Here is the game link: https://store.steampowered.com/app/613190/Unworthy/

  12. Also, 20 seconds before the end of the video YouTube covers the whole middle section with links to two other videos of the channel and the channel itself – you might want to record that extra few seconds at the end of each video so that it wouldn't cover something important like e.g. the final demonstration with the kill counter going up. 😀

Leave a Reply

Your email address will not be published. Required fields are marked *