Thursday, 14 April 2016

Class 35 - Working Armour

Post 118

Working Armour
Today I started to work on the implementation of working armour in my game. Basically it is just like having a secondary health bar that changes the amount of damage you take when its above 0. The code behind it along with the overall concept is simple. It involved going into a lot of code and changing some basic statements to be a little different by adding in extra options and "If" statements. But for others it was more simple. Like how I didn't want the player to bleed when they had armour, I achieved this by just having a step event like this, "
If Armour (is above 0)
{  Bleed = False }
This just stops the bleed before it does anything to your health or creates the bleed effect.

The biggest problem I faced well creating the armour was the sound it plays when the armour itself breaks. Making a armour being hit sound was fairly simple, but making a different sound play once and only once when the armour dropped to 0 was hard.

After a couple of stressful minutes of code I managed to get it to work. Currently I don't have an actual dedicated sound to the armour being broken so I just used the shield thud sound.
Tomorrow I will work on making hits feel more responsive and impact-full.

Wednesday, 13 April 2016

Class 34 - Armour

Post 117

Armour
This class I decided to make an armour stat that decreases along with your health. The idea behind this is that when you have armour your health doesn't take as much damage because a good portion of the damage received goes towards your armour. The armour will also stop you from taking bleed damage. So unless your armour is broken you shouldn't be able to have the bleed damage applied to you. This will help balance the extreme damage from the actual bleed. I also plan on making the armour not decay when blocking. Because currently when you block attacks still do damage to you, but at a reduced rate. But armour shouldn't be damaged when your shield is being attacked. So tomorrow I will put all this into the game. So basically today I just made the nice visual aspects of my Armour stat.

Tuesday, 12 April 2016

Class 33 - Bleeding

Post 116

Bleeding
Today I began to work on making on hit effects. Currently I spent all my time and effort into making one on hit effect, bleeding. This effect will occur when the player gets hit by a enemy with bleed damage. What bleeding does is slowly damages you after you have been hit. This gives attacks more variety.
So currently bleeding works by having the variable "bleed" set to 30 for example. The bleed variable then begins to reduce its self by 1 every step of the game. And for every step of the game the "bleed" variable is greater than 0 the players health is reduced by 1. This basically reduces the players health by 30 in 30 steps. But just having this doesn't really communicate well with the player so I started to work on a visual aspect of the bleed damage.


So I made this little dripping blood animation to display over the players head. This makes it obvious that the player is taking bleed damage.
Next class I will make some way to protect yourself from the bleeding damage. I'm think something along the line of breakable Armour.

Monday, 11 April 2016

Class 32 - Picking Up Health Pots

Post 115

Picking Up Health Pots
Today I wanted to start making a simple system to allow the player to pick up health pots and save them rather then just using them instantly whenever they pick them up. The idea behind this mechanic is pretty simple. Instead of having the health pot add health upon being picked up, it just simply increase the variable "Healthpot_count". When the variable "healthpot_count" is above 0 the game will allow you to press the health pot button and restore some health, along with removing one of the health pots. This gives off the illusion that you actually obtained something and used it, but instead all you did was increase some numbers and hit a button to reduce some other numbers. Pretty nifty.
Now along with this I had to make some balancing changes. This is because there is no limit on how high the "healthpot_count" variable can go. So you can pick up 100 health pots and just spam them well you are being attacked and become invincible. So that is obviously not something I want in the game. So in the future I would like to add an animation for drinking the potion and a cool down, so you can't spam them. But for now a simple limit on how many you can carry will suffice. Currently I set the limit at three, and might possibly have an option to increase your limit in the future as an upgrade. I also made sure that if you have reached the limit of potions you can carry and you try to pick up more it wont let you. This stops the extra potions from vanishing into thin air when you try to pick them up. It also gives the player a chance to use one of their own potions freeing up some space so they can pick the new one up.

Next Class I will work on possibly adding in passive effects, so like bleed damage, or poison damage.
This will give enemies variety in the future, and also might be used as upgrades for the players weapons.

Sunday, 10 April 2016

Class 31 - User Interface Improvements?

Post 114

(Post for April 8th)

User Interface Improvements?
Today I decided to work on improving the user interface for the player. After lots of work with trying to create a fancy looking health bar using the health bar functions and trying to tediously layer a sprite over top of it I came to the conclusion, the conclusion that it is not worth it. Currently I have two options for my health system. I can make a sprite with millions of different frames for different levels of health, and have the image_index match up with the current health status of the player. This would be effective, but setting up this kind of health bar would take an immense amount of time. So I have decided to do most of my UI in numbers. For now anyways. In the future I might switch to another method of creating visually appealing stats and health bars. But for now I will work on making a simple number based system.


So here is the screenshot of the working number UI system.


Tomorrow I want to try and implement some new systems like bleeding effects. Or the ability to pick up health pots and save them for later.

Thursday, 7 April 2016

Class 30 - Random Chance

Post 113

Random Chance
Today I began to work on making the pots drop health pots randomly, as well as the occasional enemy drop, just so there is variety. Because currently the game is very repetitive. So I started to do this by setting up a simple variable called random chance. Random chance is a random number range between -2 to 1. When the level starts it randomly sets its random chance to one of these numbers.
Inside the step code it asks what the random chance number is equal to. And if the random chance is positive, It asks one more question. Is the bad chance positive. So what this does is it has two random chances inside each other. When the random chance is equal to a positive number it will spawn a health pot upon being broken open, unless the bad chance is also equal to a positive. Then the pot will spawn an enemy when smashed. Resulting in a dangerous choice for the player.
 Get more health? Or get attacked?


Tomorrow I will work on adding some more depth to the player UI.

Wednesday, 6 April 2016

Class 29 - Health pot, pots

Post 112

Health pot, pots
Today I wanted to create another way to obtain health pots other then killing enemies. So what other way to do that then. Well. Having more pots, that drop health pots. Now this doesn't mean like little pots like the health pot that drops the health pots. This means big pots like this.

So if I have a bunch of these pots laying around the level, with the chance to have health pots in them. The the player will have two ways to obtain some more health. However this class I didn't get enough time to finish up putting the code together for the pot because I had to show Justin how my camera worked by following both the player and the cursor giving him sort of a run down on who I made it, and how he should make it. Along with that I showed him the screen shake.
But before the bell rang I managed to finish up the visual aspect of pots.

Now... Im aware it doesn't look that good. But that is because my game is using very very tiny pixel graphics. So here is a smaller picture of it to show you how it increases in quality as it gets smaller.

And here is the animated version, for when it falls over.

Tomorrow I will implement the random dropping of items from the pots, and maybe even add enemies that can be found hiding inside them.