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

2020/7/16

How to display an int on the screen?

1
2
ANIMALLOVER09824 ANIMALLOVER09824

2020/7/22

#
Should this work?
public void showScore()
    {
        //Show the score
        showText("score: "+score, 90, 90);
    }
Because it doesn't this is all it shows, and i have score set as 3
danpost danpost

2020/7/22

#
ANIMALLOVER09824 wrote...
Should this work? << Code Omitted >> Because it doesn't this is all it shows, << Image Omitted >> and i have score set as 3
Do you call the given method? Show entire class code.
RcCookie RcCookie

2020/8/9

#
ANIMALLOVER09824 wrote...
Should this work?
public void showScore()
    {
        //Show the score
        showText("score: "+score, 90, 90);
    }
Because it doesn't this is all it shows, and i have score set as 3
Yes, if the method is called
You need to login to post a reply.
1
2