RPG Maker Forums

Hi 


I have a var with a huge string.
Am try to make a max letter count for each line.
Is work, but is cropped my word.

How i can prevent Cropped words ?
Like the red Arrow show..


Here how ma var are setup


I use this myvar=myvar.match(/.{1,40}/g).join(' \n ');


// The text string example in a var
var TempDesscr = 'this is a test with text.match, but is cropping';

// Now replace the same var with the '\n'for break line eatch 40 letters
TempDesscr=TempDesscr.match(/.{1,40}/g).join(' \n ');



// and show function for the text description in picture bitmap
$gameScreen.setDTextPicture('\\OW[6] ' + TempDesscr +' ', 36);
$gameScreen.setFont('GameFont');
$gameScreen.showPicture(894, '', 0, 660, 485, 100, 100, 255, 0);


nocrooping.png


Tanks a lot for helping guys

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,038
Messages
1,018,466
Members
137,821
Latest member
Capterson
Top