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.

Problem With Window_Base in Battle

To me, using SDK 2.2 Window_Base crashes as I start a battle.

It says:
Script 'Window_Base' line 21: TypeError occurred.
cannot convert Array into Integer


Line 21 is this...
self.width = width

in the def_initialize...can you help me?

PS: I have no scripts in battle.
 
What it says from that, is that the 'width' variable is an array when or before entering the def initialize. Did you do anything special, like adding a new script or fixing on some other before this happened?

The width variable is supposed to be an integer, since the self.width is the width of the window, and it does not support arrays nor floats.
 

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