Hello , I'm new to programming and especially greenfoot , i don't really know how to create and animate a text to be more specific im trying to create a "Select champion" text at the start of thee game.All help is appreciated!


public class Button extends Actor { public Button() { // 0000 for transparent background setImage(new GreenfootImage("Select champion", 24, Color.RED, new Color(0,0,0,0))); } public void act() { if(Greenfoot.mouseClicked(this)) onClick(); } private void onClick() { // Your code here } }