Tuesday, 20 October 2015

Day 25: Persistence

I have unofficially finished the health bar! It works properly, and follows the proper spot in the game's view, so it is visible at all times. I set the depth to be above everything else, and noticed that at night time, it does look a little bit plain, however it will be pretty easy to edit in the future if I want to do that. (All I have to do is make on sprite change, then copy and paste it 100 times over the existing sprites. Shouldn't take long at all.)

I have begun working on a very important feature, which is causing alot of problems already, and I just started. I need to make it so that the player still has the same amount of health and has all of their weapons and ammo while transitioning from room to room. I learned 2 ways of fixing this, one being that I just have to check the "persistent" box on each of the objects. That doesn't entirely work, so I'm attempting to make all of the variables into global variables. That will be my project for tomorrow. Hopefully it will all go smoothly.

No comments:

Post a Comment