This is the start of the series on combat! We begin by creating an enemy object and setting up a simple health system for both the player and the enemy.
Because we're using GML, we have some tools for reusing the health system code across objects - namely - scripts. We set it up in two parts: the init_health() script that gets called in both the enemy and the player Create event, and the draw_health() script that gets called in the Draw event.
Our final result is an enemy with a healthbar over its head, ready to do combat with our Player! Check out the next videos in the series to see how to put that health system to use through melee and ranged attacks.
Music:
Thoughts - Eric Godlow https://soundcloud.com/eric-godlow
Download
0 formats
No download links available.
Player and Enemy Health (GameMaker Studio 2 Tutorial) | NatokHD