Project at: https://github.com/EyeBallTank/PROJECT-NORTUBEL-main-ish
At some point, the player couldn't be hurt when idle, but i fixed it.
I ended up using the Enemy Hitbox method from Heartbeast's Pixel Platformer tutorial, where enemies share an Area2D that has a collision shape attached.
There is an issue: The player can either "enter" the Enemy Hitbox and survive damage as long as they're inside it or touching it after being hurt once.
I know i cannot turn off the Player's collision because they'd obviously fall through the level.
An idea i had was to temporarily turn off the Enemy Hitbox (Which could even affect multiple enemies sharing it but it'd give the illusion of an "invincibility frame", i guess?).
But this could lead to two things:
- If the Player gets hurt, they're technically turning off Enemy Hitbox in a way that the Companion can survive being hit.
- Because it'd be the Player deactivating it, the Companion can be hurt without the illusionary "iframe" caused by the Enemy Hitbox's temporary disable state.
And this is also because of the weird way how things are coded/structured.
This is also why i wanted a "knockback" effect from the Player/Companion, but even the mere ideas of "where the Player is going", "where the Enemy is going" etc could lead to a lot of work.
So just having them simply jump seems to be reasonable enough.
In other news:
- I decided to take a break from the Pushable object situation and maybe focus on that in a better time (I still made a post on the godotengine dot org QA site, just in case).
- I added a sound effect for an object ingame and it even works with the volume slider (It's from Freesound user strangehorizon).
- I also added "placeholder" scenes for keys, in case i develop a key/locked door system.
But some things are going forward.
Got a message from r/Godot about get_overlapping_bodies() while is yet another thing i haven't really heard/tried, so i still have things to learn.
Also, turns out i still got OC related ideas https://eyeballtank.tumblr.com/post/708642344678965248
And i've also returned to Doom mapping, recreating a Moai statue and creating a structure i want to be relevant to Nortubel in some way https://eyeballtank.tumblr.com/post/708518804061306881