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

danpost's Comments

Back to danpost's profile

danpostdanpost

2014/11/18

First, you need to add an image of a hamburger to the 'images' folder of your project. Then you can use 'setImage' on a Magdalena object.
danpostdanpost

2014/11/15

Also, this part looks very strange -- (Ljava/lang/String;II)V I wonder if you got a good download on the new version. You did download Greenfoot version 2.4 and are now running it, correct?
danpostdanpost

2014/11/15

I have never seen that message, "NoSuchMethodError", during runtime. What is now your line 38 in the Bebe class? (copy it and paste it here)
danpostdanpost

2014/11/15

You already have one 'comida' value showing. Are you not able to show another one in the same way? I will look at what you actually have.
danpostdanpost

2014/11/15

As an alternative, you could use the 'drawstring' method on the background image of the world. However, you will have to replace the background image each time the value of 'comida' changes (to remove the old string -- so you can draw the new one -- so you will not end up with string over top of string).
danpostdanpost

2014/11/15

I think you need Greenfoot version 2.4 to use it. If you are not using the latest version, then you need to create an Actor subclass and set a Greenfoot image of the text you want to display to it. You will need a method to change the image when the value of 'comida' changes.
danpostdanpost

2014/11/15

The method name is not 'show', but 'showText'.
If you removed the directory path to the images file (the 'RUTAIMG' field) from the scenario, it will work fine.
You can start a new discussion thread on that issue (it is easier to view code there).