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.

Script Error with NeoABS

Hello,
I'm having a bit of a problem with NeoABS and I know that no one supports it anymore, but I would appreciate someone putting thier two-sense into this...
PROBLEM: I'm using hategroups to have two different monsters attack each other and every so often I'll get this error when they are fighting each other...

Script'  oEnemy Process' line 526: NoMethodError occurred.
undefined method `enemy_id' for nil:NilClass


Here's the line of script...

    enemy_id = (e_id > 0 ? $NeoABS.enemies[e_id].enemy_id : 0)

I hope that this is enough information to help someone come to a conclusion of this problem.
Like i said though this error doesn't occur all the time but it still occurs and I don't want to release a buggy game.

P.S. - The only other script I'm using is a custom menu script and a splashscreen script.
 

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