gdquest-demos / godot-platformer-2d

2d Metroidvania-inspired game for the 2019 GDquest Godot Kickstarter course project.
MIT License
623 stars 74 forks source link

Enemy-Player interaction while hooking #164

Closed Razoric480 closed 5 years ago

Razoric480 commented 5 years ago

Invulnerability flag, a simple boolean, added to Stats. The player activates it from within the hop on enemy state, which sets off a timer on a yield where the take_damage function simply returns.

It feels like a relatively clean solution, but I'd like a second opinion.

Also a new enemy type, a hopper who jumps back and forth. Still focusing on the hooking, so none that use steering behaviors just yet.

NathanLovato commented 5 years ago

Looking good :) I'm merging