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

2016/2/21

Newbie needs help with text

gmacias gmacias

2016/2/21

#
How would I make the text bigger or thicker in this scenario?Pong Game
TheJohny TheJohny

2016/2/21

#
You need to set the font you are using to draw the String. For example:
img.setFont(new Font("Calibri", Font.PLAIN, 28)); 
danpost danpost

2016/2/21

#
Use the GreenfootImage class to create an image and then draw it on the image of choice (Actor image of Scoreboard object). You can specify not only size, but colors as well (using 'null' for the colors will produce a transparent image with black text).
gmacias gmacias

2016/2/22

#
Thank you, both, I was able to make the text bigger. However, after the players start scoring, the text gets blurry not matter the size. Do you have any any idea what is causing the text to do this?
danpost danpost

2016/2/22

#
gmacias wrote...
Thank you, both, I was able to make the text bigger. However, after the players start scoring, the text gets blurry not matter the size. Do you have any any idea what is causing the text to do this?
Cannot tell what is causing it when the related code is not given.
gmacias gmacias

2016/2/24

#
Never mind, I just figured out that it was my computer screen. It looks fine on other computers. Thank you
You need to login to post a reply.