public MenuPlayer(int x, int y, String character, boolean walking)
	{
		this.x = x;
		this.y = y;
		
		try
		{
			
			BufferedImage spritesheet = ImageIO.read(
					getClass().getResourceAsStream(
							"/Sprites/Player/" + character + "/spritesheet.gif"));
			sprites = new ArrayList<BufferedImage[]>();
			for(int i = 0; i < 7; i ++) //!!!!!!!!! 7 = number of different animations, change for other players.
			{
				BufferedImage[] bi = new BufferedImage[numFrames[i]];
				for(int j = 0; j < numFrames[i]; j++)
				{
					if(i != THROWING && i != PUNCHING && i != BLOCKING && i != DYING)
					{// sprites for scratch are 60 px wide, not 30
						bi[j] = spritesheet.getSubimage(j*30, i*50, 30, 50);
					}
					else
					{
						bi[j] = spritesheet.getSubimage(j*60, i*50, 60, 50);
					}
				}
				sprites.add(bi);
			}
		}
		catch(Exception e)
		{
			e.printStackTrace();
		}
		animation = new Animation();
		animation.setFrames(sprites.get(WALKING));
		animation.setDelay(100);
		this.walking = walking;
		currentAction = WALKING;
	}