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

What is happening right now?

AdrianoFreitas

reply to Create a splash screen

By AdrianoFreitas - 1 day ago
Good evening danpost, thank you very much, I looked at your code example today, this week I will continue the game project. If I have any questions I will ask you.
danpost

reply to Help: getBackground() to remove images in world?

By danpost - 3 days ago
The (same) problem is with lines 47, 49 and 54. They do not retain the objects in the fields provided on line 8. The values for those fields remains null and the checks for clicks will fail on these, or, at least, not work as you intended. To retain the buttons in the fields, you must not create a new variable (which those lines do). Look back at what I gave to see how they get retained. Also, note that the field names I gave are not (at least case-wise) the same as the class name. This helps for readability of your code (letting you know it is a variable name, not a class name).