top of page
Search
Luke Crowley

Backstabs & Stamina

As stated in my previous post I had wanted to add a backstab system to the game. I got that done this week.


When a player attempts to make a light attack against an enemy, the game checks if the player is directly behind the enemy first. If they are, then the player instead executes a "backstab", knocking over the enemy and doing massive damage.


While the enemy is down, they are invulnerable to damage to prevent the player from getting too much damage from one attack. When they are done standing back up they become vulnerable again.


I also added a second resource to the player: Stamina. The player consumes stamina by performing different actions, such as attacking, sprinting, or jumping. The player cannot perform said actions if they do not have the required stamina. After stamina is consumed there is a delay before it begins regenerating.


Additionally, there is a small grace window where you cannot sprint after you deplete your stamina to zero. This is so that if you are holding sprint when your stamina begins to regenerate, it doesn't immediately consume it and bring you back to zero.


Miscellaneous:

Snow SFX and VFX were added for the player's footsteps. Using advice from classmates during a presentation, I changed the lock on camera to be above the player instead of behind them. I also take away the slight right offset the camera has while you are locked on, so that it remains directly pointed at the enemy.


Following more advice given during our presentation, I added some text to the health and new stamina bar that declare what they are. This is probably placeholder until a nicer way of displaying that information is created.

2 views0 comments

Recent Posts

See All

Fall Semester Final Update

Well, this blog didn't end up getting updated as frequently as last semester. We were both pretty focused on getting the game to the best...

Fall Semester Update

Have not had the chance to update the blog with my work since this Fall semester started, but here I am now. Early in the semester I...

Comments


bottom of page