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

2012/9/21

drawString() problems

1
2
erdelf erdelf

2012/9/22

#
I just realized I wrote a wrong line, it means
public void rename(String string)
{
   // some code
}
danpost danpost

2012/9/22

#
With what you are showing, it should work. There is probably more to it than what you are giving and I suspect the problem resides in the code of the world class.
erdelf erdelf

2012/9/22

#
I said everything from the world class that has something to do with the text class.
davmac davmac

2012/9/22

#
But with what you've written, it should work, so as danpost says, the problem must be somewhere else in the code. If you posted complete code it might be possible for someone to find the error.
erdelf erdelf

2012/9/23

#
I dont know why but if I change
public Text text; 
in
public Text texts; 
it works. (I changed the other things, of course, too) could someone tell me how this can be?
davmac davmac

2012/9/23

#
As I said before, we probably need to see the complete code.
You need to login to post a reply.
1
2