Hello, I'm having issues with removing an image using this code:
Now to make sure it wasn't the code, i applied the if greenfoot.mousclicked this, get world remove object on another actor and it was removed. Any help would be greatly appreciated.
public class Dragsup extends Actor { public Dragsup() { setImage(new GreenfootImage("Eres un milagro del universo, \n un regalo de Dios. ", 48, Color.WHITE, Color.BLACK)); } public void act() { if (Greenfoot.mouseClicked(this)) { getWorld().removeObject(this); } } }