I am programming a new project and I have the problem of flickering images, Does somebody know how to avoid this problem or how to make a bufered image in Greenfoot?
private GreenfootImage[] images = new GreenfootImage[3]; private int pos = 0; public Tigre(){ for(int i = 0; i < images.length; i++) images[i] = new GreenfootImage("tigre0" + ((int)(i+1)) + ".png"); setImage(images[0]); } public void act() { pos++; if(pos >= images.length) pos = 0; setImage(images[pos]); }