Snaiel / Godot4ThirdPersonCombatPrototype

A prototype project for third person combat. Contains basics for player movement, camera, animations, combat, enemy AI, user interface, sound effects, and background music.
https://www.youtube.com/@Snaiel
MIT License
121 stars 17 forks source link

Feature: block checkpoint when enemy is aggro #7

Closed Sod3n closed 2 months ago

Sod3n commented 3 months ago

Desctiption

Now when enemy in aggro state player can not use checkpoints. Also hint not showing when we near checkpoint.

Implementation notes

Move aggro enemy counter from music to player because now checkpoints also use this information. For now use "_aggro_enemy_counter" outside player script to 'silent' assigment(no signal call). May be exist some more correct way to deal with music fade out.

Snaiel commented 2 months ago

Sekiro and the other souls games let you use the checkpoints even while enemies are aggro and hunting you down.

Thanks for the implementation notes though. I think the next time a feature requires the amount of aggro enemies, I'll make a CombatManager script or something to put all the combat encounter stuff in.