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

2013/9/10

score

sH1R1U sH1R1U

2013/9/10

#
how i can show the score in the game and when the player die whit a label or a image? if is a label how i can change the color or the format text?
danpost danpost

2013/9/10

#
You can either create an actor class whose actor has the image you want (whether saved in a file or programmatically created) or you can create a new world whose background is the image you wish to show. Either way, the score will have to be drawn (or created ). This constructed image will usually then be drawn onto another image that is set as the actor image or the world background with the 'drawImage' method of the GreenfootImage class. The color of the text can be specified in the constructor previously mentioned; or you can set the drawing color of the image to 'drawString' on with the 'setColor' method (both of the GreenfootImage class).
sH1R1U sH1R1U

2013/9/12

#
:O thank you i try use in my game thanks again
You need to login to post a reply.