Game Maker Studio: How to Create Enemy Health Bars above their heads.

Channel:
Subscribers:
268
Published on ● Video Link: https://www.youtube.com/watch?v=YxI4uMYnrDU



Duration: 12:48
107 views
0


Visit my anime and game site: http://mcanime1.wixsite.com/mcanime

GMX file: https://bit.ly/2LAwLju

righten: (Note): leften, upen, downen, stanen, repeat the process.

Events:

Create

Actions:

Var: Self, Variable: hp_max, Value: 100

Var: Self, Variable: hp_current, Value:100

Var: Self, Variable: hp_percent, Value: (hp_current/hp_max)*100

Events:

Step

Actions:

Var: Self, Variable: hp_percent, Value: (hp_current/hp_max)*100

Events:

bulletup

Actions:

Var: Self, Variable: hp_current, Value: -5, Relative: checked (Note:) for bulletammo2, redammoleft, redammoup, redammodown, just change the Value to -10 in the current hp, and in the Test Variable, change Value to 10.

Destroy Instance: Other

Test Variable: Self, Variable: hp_current, Value: 5, Operation: less than

Destroy Instance: Self

Events:

Draw

Actions:

Draw Sprite

Self, sprite: righten1, x:0, y:0, subimage:-1, Relative: checked

Set Color: red

Draw Rectangle: x1: -25, y1: -40, x2: -25+(hp_percent/2), y2: -50, filled: filled, Relative: checked




Other Videos By MC Designs


2018-11-19Game Maker Studio: How to Create Physics for Objects in the room.
2018-11-18Game Maker Studio: How to Create a Particle System without Code.
2018-11-08Game Maker Studio: How to Master a Precise Collision hit.
2018-11-01Game Maker Studio: How to Show +1 Point Animation Collect from a Coin & Checkpoint.
2018-10-27Game Maker Studio: How to Swing on Rope.
2018-10-22Game Maker Studio: How to Create a Screen Shake.
2018-10-13Game Maker Studio: Mastering Rain.
2018-10-07Game Maker Studio: How to Create a Parallax Background.
2018-07-15Game Maker Studio: How to Unlock Rooms in You're Game.
2018-06-16Game Maker Studio: How to Collect a Certain Number of Coins to Gain Health.
2018-06-09Game Maker Studio: How to Create Enemy Health Bars above their heads.
2018-05-27Game Maker Studio: How to Deactivate & Reactivate Keyboard Key’s after getting Hit.
2018-05-20Game Maker Studio: How to Move to the Next Room after Collecting Certain Amount of Coins.
2018-04-07Game Maker Studio: How to Create Boss Movements with Custom Health bar.
2018-03-24Game Maker Studio: How to Create Enemy Hit Points.
2018-03-18Game Maker Studio: How to go from Day to Night, Night & Day.
2018-02-25Game Maker Studio: How to Create Random Objects.
2018-02-04Game Maker Studio: How to Create Special Effects.
2018-01-21Game Maker Studio: How to Make you’re File Image Icons Larger on Screen.
2018-01-13Game Maker Studio: How to Create a Mini Map.
2018-01-08Game Maker Studio: How to Create Lives & Healthbar for Player & Boss.



Tags:
android
pc
windows
computer
teach
learn
how
enemy
enemies
health
bar
above
head
destroy
fire
weapon
game
maker
studio