Thanks to Nkzar on r/Godot, i managed to fix the melee breaking the Player hitbox by making the melee attack's "animation" based on code (Turns out a scene can't use more than 2 animations from AnimationPlayer at once).
There's technically combat, even if it's a basic melee attack.
But more importantly:
Moving platforms.
Watched some tutorial videos and they seem to be working, specially without some weird physics affecting both characters (Maybe it's because the tutorial videos i watched were from older Godot builds).
And i wanted to use moving platforms on a switch system i wanted to include, which also took tutorials and experimentation.
Switches and Signals
I settled for an AutoLoad "Signals" script that connects the signals between switches and their desired objects.
So far, a switch is interacted with the Player simply touching it (May or may not change).
Besides signals, i still used AnimationPlayer to affect movement of platforms and the collisions of the buttons.
Blue switch
The first one i tried: Simply touch it and its permanent.
Yellow switch
This one has a "timed" effect but can be pressed again.
Green switches
Eventually i settled for two (One deactivates the other and vice versa) to work around the "binary" role but it also works.
What else
- I might want to use Signals in other things in the future and maybe reinvent some things like the health bars to make a proper HUD system.
- Speaking of HUD/UI, an idea i had was an on-screen notifier for the Companion's position when they're off-screen. Basically, like an arrow that only shows up if the Companion is off-screen and it points at their direction.
- Because of a change on the Player's movement, i thought about if i could try slippery ice floors in the future (Could be a unique platform on its own and not something related to TileMap, i don't mind), even if i can't find any tutorial on how to make this stuff.
- Something i'm thinking on trying is a falling platform based on if a character stands on top; May be a bit more complicated than i assume.
- Pushable object situation: Still on hold but 2 specific things i also want to keep in mind; One being that both characters should be able to push it BUT don't have to do it at the same time (And i might come up with PUSHRUN/PUSHFOLLOW states for the Companion) and another being the Pushable not clipping with walls etc).
- Companion shaking underwater: Also on hold.
- The ugly art currently in-use is "placeholder" and i haven't released/uploaded a "proper" drawing for a while.
Anyway, game is available at https://github.com/EyeBallTank/PROJECT-NORTUBEL-main-ish