Post 106
Blocking
Today all I managed to accomplish was a blocking mechanic that allows the player to successfully reduce the damage of incoming attacks.Currently this reduces the damage from 10-30, to 5-10.
So the player still takes damage and can't just hide in a corner and never die. Right now the way the shield works is you press E and your character goes into a blocking mode for around 1.5 seconds. In this mode moving and attacking is impossible, making it strictly a defensive tactic.
The script is fairly straight forward, however it required a lot of variables to make sure everything new how to behave when the player was actually blocking.
At first when I created the blocking state, if you happened to be moving well hitting the block button you would stumble into uncontrollable slide, so that is why I have added the (speed = 0;) section of the code. This makes it so when the player hits the block, they plant their feet and hold their ground, kind of like you would expect from someone using a shield.
Blocking however feels kind of clunky. This is because of the the 1.5 second duration it traps you in. So in the near future I would like to make it only block when you hold the block button.
Over this past week of working on my challenge game I have learned more about code then the entirety of my first course in InfoTech as an independent student.
Next class is a long ways off. So honestly i'm unsure of what I will actually do for my game. But I will maybe try to make more enemy variations as well as new ability's for the main character.
Future Enemy Types, List of Ideas
1. Heavy Enemies.
2. Ranged Enemies.
3. Some sort of Boss.
4. Faster Enemies.
5. Enemies That Can Block Attacks.
No comments:
Post a Comment