so I’m about to introduce “death” to my little universe…
How should I do this?
now, my game is an homage to the 80s games that I grew up with… Dani Dunton’s M.U.L.E., Bezerk, Lunar Lander, Captain Havok, Zaxxon, etc… set in a Buck Rogers/Flash Gordon "Ray-punk| universe… .
when my Player dies, I want to just play some animation or partical effect, then respawn at 0,0,0…
I have some items that once the Player aquires will stay with them forever… so “Death” wont effect the Player’s inventory… Really, I want to world to stay the same after the Player gets killed, objects, enemies all in the same state (like if 7 out of 10 enemies were destroyed before the Player respawns, then after respawning there should be only 3 left… so I’m not gonna re-load the level on Death or anything…
Any help, suggestions, tutorials, thoughts on game Death… would be really appreciated… I’m not really a programmer… I’m just a “script kiddy” at best, but I have been making games for a long time…
how does the Player die? most likely from colliding with an object like an asteroid or an enemies instatiated projectile…
Death script should go on the Player, seperatly, or should I include death in the Player movement script?
Ideally, “Death” would be an AI personification hidden somewhere in my world, that could make mistakes, and even “ignore” or overlook a Player death, if it’s busy… like, hmm, Player just killed 15 enemies in some second, but gets killed too, but my Death would be kinda stupid and can only “be aware” of like the first 9 “deaths” that happen in one second… (yes, it would make the Player an invincible whirlwind of death if they can keep with the numbers… a reward for massive combos?)…