This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
DerAxeEffekt
wrote ...
2014/1/21
drawString
DerAxeEffekt
2014/1/21
#
I'd like to know how to use the drawString method properly. I tried this: drawString("Hello!", 0, 0,) and this: GreenfootImage.drawString("Hello!", 0, 0,) but they don't work.
davmac
2014/1/21
#
From the documentation:
The baseline of the leftmost character is at position ( x , y )
The problem is that you're drawing the text too high up; it goes off the top of the image.
You need to login to post a reply.
X