Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

My enemies refuse to die =x

Rayne

Member

If I start a new project, they can die fine, so it must be something wrong with my game.

If I delete all my scripts, they still won't die. The enemies aren't immortal, and the damage reading says 40-odd on something with 6hp; I keep attacking but its health doesn't go down. Using a CBS with an enemy health bar, when I dealt 17 damage it went almost to the bottom (1hp I assume) then attacking wouldn't hurt it any further. Skills don't work, and it won't work if I try any other weapons. Does anybody have any idea what could be causing this?
 
It might be corrupted data or something like that. Have you tried killing your enemies without the CBS?

If that doesn't work, make a new project and transfer all your data and graphics in it. If that doesn't work as well, it might be that you played in something in the default battle scripts.
 

gumbo

Member

Or maybe there tired of being killed over and over again just to be killed again! every time you press playtest all the enemies are like 'not this again! Every time! Were never the main characters! I know what we'll do, lets just not die!' 'but Steve! We have to die! Its in our programming!' 'Y'know what Jerry?! I don't care about our programming! I'm protesting!'

Yeah... that's probably what happened...
 

Rayne

Member

=O Wow thanks Gumbo! I offered them coffee breaks and a slight pay increase and they're back to work =D

Seriously though, thanks to Unka Josh for the solution. I categorized my states under things like status effects and stat boosts, so Death was number 4 in the list. Thanks a lot =]
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top