public double[] getTextureCoords(int frame)
	{
		//Gets the texture-frame.
		int xFrame = frame % this.framesX;
		int yFrame = frame / this.framesX;
		
		double startx=frameWidth * xFrame;
		double starty=frameHeight * yFrame;
		
		double[] texCoords = new double[] 
				{
					startx, 	starty,
					frameWidth, frameHeight
				};


		return texCoords;
	}