I had some help with movement a week ago, but since on my monopoly board the 40 board places each is its own class we started to make a array but it doesnt seem to be coding right.
Properties p=new Facebook(); addObject(p, 554, 46); int i = 39; pads[i] = p; i--; import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.awt.Color; /** * Write a description of class Road here. * * @author (your name) * @version (a version number or a date) */ public class Board extends World { public Properties[] pads = new Properties[40]; /** * Constructor for objects of class Road. * */ public Board() { super(850,850,1); setBackground("Sociapoly.JPG"); // This is currently unused, here to use as an example. //String bgTxt = ""; //GreenfootImage img = new GreenfootImage(bgTxt, 30, Color.black, Color.magenta); //GreenfootImage bg = getBackground(); //bg.drawImage(img, (bg.getWidth() - img.getWidth()) / 2, (bg.getHeight() - img.getHeight()) / 2); // The following statements sets up the Action menu items (in order given) addObject(new Die1(), 337, 119); addObject(new Die2(), 399, 119); Properties p=new Facebook(); addObject(p, 554, 46); int i = 39; pads[i] = p; i--;