Simple Game Update!


Welcome back to yet another devlog, and today i will talk about the progress update on this simple game project, very serious today.

So first of all i have implemented player spawning and player taking damage, i have a simple spawner script which every x amount of seconds spawns an enemy and stores them in a list and when the list is full it stops spawning enemies but the list frees up when enemies die. Also you can see from this gif when an enemy interacts with a player their health drops i simply did a distance check for this one so when the enemy is within x range of player it damages them and they destroy themselves. Very Scary!

But! the player can also recover health but running into healthpacks! saw the shiny green orbs above? they arent just decoration but when the player runs into them their health recovers, the healthpack simply has a script which detects when the player collides with them and adds health to the player.



Last of all for today i have the player death to show you, simply put when the player takes damage they have a line of code to also check if their health is below 0 and if it is they're considered dead, oh no :( and to illustrate death i simply destroy the player, although for a full game it would make sense to have a better visual and maybe a game over screen or something like that.


ok so that's all for today,

Thanks for reading and have a great day :)

Leave a comment

Log in with itch.io to leave a comment.