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.

RPG's Side-View Battle System - A script error

-MZ-

Member

Hello, I'm having a strange issue with the animated (enemy) battler for just one particular monster. He has the same dimensions as the other files, but whenever a battle starts with him in it I get this message:

Script SceneBattler4** line 406 error occured.

Undefined method 'frame_width' for nil:NilClass

Here's what line 406 is:
Code:
	   x += @spriteset.enemy_sprites[target.index].frame_width / 2

Here's here's the entire code:
Code:
#==============================================================================
# ■ Scene_Battle (分割定義 4)
#------------------------------------------------------------------------------
#  ãƒ
 

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