Hi I want to set the paint order of an image rather than a class .(this images are both in the same class). How do I do this?
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Intro here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Intro extends Actor
{
public static GreenfootImage img2 = new GreenfootImage("Changebutton.png");
public static GreenfootImage img1 = new GreenfootImage("Instuctions.png");
public Intro(String Image)
{
setImage(Image);
}
public void act()
{
if(Greenfoot.mouseClicked(this)&&getY()<250)
{
getWorld().removeObject(this);
}
}
}