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

2019/4/17

AREA SIZE CHANGE

gdrgnxxi gdrgnxxi

2019/4/17

#
How to change or enlarge the area where i put my text? When I put a long text, it does not show everything. How can ifir the tet i put within the background image. Pls help.
danpost danpost

2019/4/17

#
You could place a "new line" character sequence, '\n', in your text to create multiple lines of text. For example:
showText("Jason\nvs.\nFreddy", 300, 60);
would show three lines of text.
gdrgnxxi gdrgnxxi

2019/4/18

#
thank you! but is there any way to change the size and the color of the font? or should i use other methods? I put the showText on the world where i will flash the text
danpost danpost

2019/4/18

#
gdrgnxxi wrote...
thank you! but is there any way to change the size and the color of the font? or should i use other methods? I put the showText on the world where i will flash the text
I do not believe there is any way of changing the size, color or font of text drawn with the showText method. You could, however, use an actor to show a text image of specified size and color combination (text color and "color behind the text" background color). The actor could be made to blink on and off by alternating the transparency of its image from full to none and back at regular intervals.
You need to login to post a reply.