How i make enemy health bars

Discussion in 'Programming' started by Dreamerboy666., Dec 17, 2018.

  1. Dreamerboy666.

    Dreamerboy666. Member

    Joined:
    Dec 17, 2018
    Posts:
    2
    How i do enemy health bar in top of the enemy in gamemaker studio 2
     
  2. Rob

    Rob Member

    Joined:
    Jul 12, 2016
    Posts:
    743
    Make a Sprite with at least two images (horizontal red/green bars)

    Set the Sprite origin to center left.

    Inside your monster objects use draw_sprite to draw te red bar and then draw_sprite_ext to draw the green bar. For the scale value of the green bar, divide the current hp by the map hp.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice