public boolean tick(int dt) {
	boolean rv = false;
	te += dt;
	while(te > frames[fno].dur) {
	    te -= frames[fno].dur;
	    if(++fno >= frames.length) {
		fno = 0;
		rv = true;
	    }
	}
	curf = frames[fno].parts;
	return(rv);
    }