Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

I think the old bodies lying around is pretty cool, as long as they can’t break anything (block entrances, etc.)

I work as a software developer, but take my advice with a pinch of salt, because I’m not much of a game developer.

HP is a property of the player, and so it belongs with all the other player properties (position, scale, rotation, etc.).

Respawn is a bit more difficult. If you have it as a method on the player, then you can easily update the HP and position. You’d probably lose the dead bodies by doing that, unless you Instantiate() a new player object. That might cause weirdness when it comes to controls and things like that.

Just try to keep things in the place they logically belong. If the player has health points, then HP belongs to the player. If something else needs to know the HP (your health bar) then it will need to be able to reference the player to get it.

Coupling those GameObjects together seems to be a pretty common thing to do in Unity, so that’s probably fine for now, even though I’d usually say to avoid tightly coupling independent objects. Most typical solutions are going to be huge overkill for your game in the next week or so. :)

For tutorials, I’d say to find one that is producing something just like what you’re working on, and stick with that for examples/inspiration. Trying to follow more than one will probably just jumble things up, like you said. See if you can find one with the source code available for close inspection.

I think you’re doing great, and the best thing you can do is practice!

(+1)

I appreciate the advice!
I might do so refactoring after I get HP and player death working right. Then work on the final big part of the game which is combat. But super simple combat. I hit something with a stick, something dies.

The more I build the more I want to include, like losing coins on death, then a death run back to corpse etc. But anything above what I"ve already included is a bit out of reach. Especially with the time limit. I figure I'll finish this and then after this gamejam start a new  game with the info I've picked up.

(+1)

Yeah, I’ve come to terms with the fact that if I want to make the game I have in my head, I’ll need to continue for a long time after this game jam. I’m just hoping to get the most basic implementation done now so I feel like I achieved something. :)