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

2012/8/31

Simple Score

lgbrf lgbrf

2012/8/31

#
hey, i want to have a score for my game up the top, it only has to be simple, but i have no clue how to do it. The score would be basically printing an int variable on the screen. how do i do this??
DonaldDuck DonaldDuck

2012/8/31

#
Integer.toString(INT-NAME); returns a string representation of an integer. Basically just do that to your score int and drawString to your image.
ManiHallam ManiHallam

2012/9/8

#
This video will explain exactly how to do it in a simple way, not complicated. JoC #16: Adding a score counter
You need to login to post a reply.