00:00
00:00
EyeBallTank
Working on Project Nortubel.
https://rentry.co/axmy9

READ MY RENTRY POST

Joined on 8/24/21

Level:
19
Exp Points:
3,740 / 4,010
Exp Rank:
13,976
Vote Power:
6.08 votes
Rank:
Civilian
Global Rank:
> 100,000
Blams:
0
Saves:
17
B/P Bonus:
0%
Whistle:
Normal
Medals:
26

Got a working health system and pain animation/effect

Posted by EyeBallTank - February 7th, 2023


https://imgur.com/a/twyyJTI

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


Tags:

Comments

Comments ain't a thing here.