public void updateFrame() {
		int currentFrame = 0;
		for (int y = 0; y < this.img.getHeight(null); y += this.frameHeight) {
			for (int x = 0; x < this.img.getWidth(null); x += this.frameWidth) {
				if (currentFrame == this.frame) {
					this.frameX = x;
					this.frameY = y;
					return;
				} else {
					currentFrame += 1;
				}
			}
		}
		this.frameX = 0;
		this.frameY = 0;
	}