This site requires JavaScript, please enable it in your browser!
Greenfoot back
-nic-
-nic- wrote ...

2013/2/1

Getting text to paragraph?

-nic- -nic-

2013/2/1

#
Is it possible to get text to paragraph instead of being in a straight line? eg normal: qwertyuiopasdfghjklzxcvbnm paragraped: qwert yuiop asdfg hjklzx cvbnm kinda like using the <br> tag in html
danpost danpost

2013/2/2

#
Most times a string can be split into seperate lines by using the \n escape sequence within the string (that is when using, for example, 'new GreenfootImage("qwert\nyuiop\nasdfg\nhjklzx\ncvbnm", 24, Color.black, Color.white)' or some of the other methods dealing with displaying text).
moobe moobe

2013/2/2

#
arrgh! If I had known this, I wouldnt have created so many Labels in my game! >.<
-nic- -nic-

2013/2/2

#
Thanks Danpost
You need to login to post a reply.