Weekend Progress Report- Combat


Quite a bit has happened since last time. I have implemented a knock back effect when the player performs a melee attack. This is limited to the first melee attack, as it led to a situation where you could melee juggle enemies to keep them out of attack range for the entire fight.

Enemies now wander about near their spawn points when they're not aggro'd upon the player. They choose a new position to move to every few seconds, randomly within a certain distance from their spawn point.

Loot drops now automatically get collected, as it seemed tedious to have to to go grab them all the time. You'll see them flying in the player's direction when they drop now.

Enemies can now do damage to the player! Previously they simply followed the player about, angrily, but now they have an attack, with a cool down period.

Player health gets a regen function, that varies depending upon whether or not the player is in combat, getting less regen in combat.

To fix a combat bug the crept in with knock backs, you must hold down the shift key to perform a melee attack now, which will also keep the player from moving. Previously I was testing the distance from the player to the click location, and doing a melee attack if it was very close, but this created a strange bug where double attacks happened with a single click... i may revisit this issue later on to see if I can find the actual bug, but for now, hold shift to melee attack.

Player death is not yet implemented, so your health can dip to zero... effectively the player is undead now! Death will be implemented soon.

Files

movedemo_linux_cd817b5f.zip 38 MB
Dec 10, 2023
movedemo_win_cd817b5f.zip 41 MB
Dec 10, 2023

Get Action RPG Prototype

Leave a comment

Log in with itch.io to leave a comment.