This is the code for my background
However, the objects won't appear on that background. Those objects are buttons and I've put "setLocation(int, int)" in all of their act codes but they still won't show up. Please help!
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class background2 here. * * @author (your name) * @version (a version number or a date) */ public class background2 extends World { /** * Constructor for objects of class background2. * */ public background2() { // Create a new world with 600x400 cells with a cell size of 1x1 pixels. // Code for the buttons to stay on the second background. super(500, 350, 1); addObject(new start2(),318,395); addObject(new player1(),165,152); addObject(new player2(),454,149); addObject(new langa(),84,273); addObject(new langb6(),454,149); addObject(new langb56(),454,149); addObject(new langb5(),454,149); System.out.println(getObjects(null)); } }