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.

ATP problem- cannot convert Fixnum into string

Hi again. I've been trying to use the following:
self.contents.draw_text(0, 0, 320, 32, @tip_message[rand(@tip_message.size)])

And everything works fine except that if a line is too long the message gets cut off. I've browsed the net for a remedy and found an ATP(Advanced Text Paragrapher) at http://gamebyyou.pl/viewtopic.php?t=28 . The problem is that whenever I activate a script that is to draw text the game shows:

???? 'Paragraph_script' 86? Type Error ??
cannot convert Fixnum into string

And that's about it. I can't test anything until I get the script working :| Or unless I can find a simple paragraphing script elsewhere (it's only used for one window so I don't want an AMS)

Other Scripts I am using:
Atoa State Cycling (until I learn how to create my own :D )


If you need more info, I'll be glad to provide it



//EDIT: I've also found http://rmrk.net/index.php/topic,22215.0.html , but this time the message says:

????? 'Window_TIP' ? 195 ??? NoMethodError ???????? undefined method 1 bitmap' for #<Bitmap:0x711eb50>

Which is:

195 self.contents.bitmap.draw_paragraph (0, 0, 300, 32, @tip_message[rand(@tip_message.size)])

The second script would suit me better so if you know anything about the above please tell me ;)
 

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