class textObject{ float x; float y; color c; String s; int frames; int currentFrame = 0; textObject(float x, float y, color c, int frames, String s){ this.x = x; this.y = y; this.c = c; this.frames = frames; this.s = s; }//end constructor void paint(){ fill(c); textFont(font, 60); text(s, x, y-currentFrame); currentFrame++; if(currentFrame > frames) Texts.remove(this); }//end paint }//end class text object