public void render(Entity parent, Graphics g, int delta) {
		if (this.shown) {			
			// if the text is dynamic, move the text at its y location (decrement by speed)
			if (this.dynamic) {
				this.speed -= 0.05f;
				
				this.y -= this.speed;
				
				if (this.speed <= 0) this.shown = false; // if the speed equals to 0 stop to draw it
			}
			
			// if the text isn't dynamic draw a static text and start a timer if it is required
			else if (!this.dynamic) {
				this.x = parent.getX() + 24 - g.getFontMetrics(g.getFont()).stringWidth(this.message) / 2;
				this.y = parent.getY() - 17;
			}
			
			// set font size
			if (this.size != 12) g.setFont(new Font("Consolas", Font.PLAIN, this.size));
			
			// draw the text and set the current color to the chosen one 
			g.setColor(this.color);
			g.drawString(this.message, (int) this.x - (int) GameComponent.offX, (int) this.y - (int) GameComponent.offY);
			g.setColor(Color.black);
			
			// set to the default size 
			g.setFont(new Font("Consolas", Font.PLAIN, 12));
		}
	}