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.

I need you to help me with this Script

I got Ccoa's CBS version 3.04, the problem I have is that, when I battle test it, it works fine, but when I Test Play and a battle starts it will say "Failed to create Bitmap". Here is the line:

@sprite_sheet = Bitmap.new(width, height)

I don't know what the problem is, my custom Sprites have the same format as Ccoa has. Could you help me?

(I don't also know if this Topic should be posted here, but since it's requesting someone to help, I thought it would be here.)

If you know any good Animated Side View Battlers Script, please inform me.
 
Well, unless I'm mistaken, you have to put a number where "width" and "height" is. Ex:

Code:
@sprite_sheet = Bitmap.new(15, 30)

That means that the width of your image bitmap will be 15, and it's height will be 30. All you have to do is replace those numbers with the perimeters of your image, and it should work ok.
 

Nachos

Sponsor

xBrokenSin":31i4w6lg said:
Well, unless I'm mistaken, you have to put a number where "width" and "height" is. Ex:

Code:
@sprite_sheet = Bitmap.new(15, 30)

That means that the width of your image bitmap will be 15, and it's height will be 30. All you have to do is replace those numbers with the perimeters of your image, and it should work ok.

I don't know much about scripting, but I think (width, height) must me +32.

Search.
http://www.rmxp.org/forums/index.php?topic=46541.0

It's just me or that sounded awfully sarcastic?
 
Ah, there's the nahchito we know & love!!!  :scruff:

in this case, "width" & "height" are local variables. The variables have a default value (0). So that's not the problem. They are dynamic values (different for each battler), so don't change them.

The most likely problem is you're missing required battler 'pose' files.

The instructions to use this script should be located at the scripts 'point of origination', which would be at RPG Revolution.
You should also post your questions / problems over there, so the original Author can address them.

Be Well
 
Also, make sure they are in your Graphics/Battlers directory for your project AND that you have imported them.  width and height should be non-zero unless it can't pull any of them from RPG::Cache.battler  If you're getting that error, it means it grabbed none of them and thus width and height are still 0.
 
Thanks all for the help. I checked all of the "pose" files and they're complete, still no use. I tried changing the width and height into numbers, it worked, but only for the monster and not for the Character.
 

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