RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
draw_text

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 89
I am yourself!
Help! I got a question to answered.

Example, if you put an EXTREMELY LONG string on draw_text that has 480x64 size, you'll get it compacted instead of make it into two lines.
How can I make it two lines instead compacting it. The standard size is widthx32, right?
Symphony of Alderra : Memoirs of Life

Storyline : 200% (Overimaginatives)
Scripting : 100% (At last...)
Eventing  : 100%
Mapping   : 0.125%

*
Resident Cloud
Rep:
Level 91
as far as i know you just use another draw text method on a new line of the script.

***
Rep:
Level 89
I am yourself!
Then how to cut the string?
Symphony of Alderra : Memoirs of Life

Storyline : 200% (Overimaginatives)
Scripting : 100% (At last...)
Eventing  : 100%
Mapping   : 0.125%

*
Resident Cloud
Rep:
Level 91
if the string is generated by you typing it then youll have to experiement and try to find the length at which this occurs. if its dynamically generated the same except more complicated :(

******
Revolution is not a bed of roses.
Rep:
Level 91
Project of the Month winner for July 2009
Strike 1, this belongs in script help.

You can try to use a conditional statement and see if you can check the length of the string.

***
Rep:
Level 89
I am yourself!
Is there no automated method?

Like modify draw_text, or something so it will automatically make two line?
Symphony of Alderra : Memoirs of Life

Storyline : 200% (Overimaginatives)
Scripting : 100% (At last...)
Eventing  : 100%
Mapping   : 0.125%

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
My Paragraph Formatter can do it for you if you like.