Monday, 19 October 2015

Day 24: Health Progress

 I finished the health bar! I was able to make the last of the health sprites, and finally have coded it in, using alot less code than I thought I would be using. I expected to have to write out a statement for each value of health, making for over 300 lines of gml, although about half way through diong that, I was able to make a much simpler way of doing it (that actually works better too).

image_index=health+1;

Pretty simple stuff. So I lost about ten minutes on that, but it is no big deal. The main thing is that  I was able to make it work, and that is what matters. Now I think I am going to be working on a bit of persistence, in the idea of the player having the same amount of health no matter where they are.

No comments:

Post a Comment