This site requires JavaScript, please enable it in your browser!
Greenfoot back
eddyfairf
eddyfairf wrote ...

2016/8/11

Movement bug

eddyfairf eddyfairf

2016/8/11

#
i have made a maze game, but wherever the character goes, it leaves behind a trail of graphical glitch sprites. they can be removed by right clicking in a way so that the box covers them up. has anyone else had this glitch? i have tried restarting greenfoot and my computer but neither has worked.
danpost danpost

2016/8/11

#
You probably cleared the background image of the world, or have some transparent areas within the image used. You might try, instead of setting the background image, drawing the background image on the initial one:
// instead of
setBackground("imagename.png");
// use
getBackground().drawImage(new GreenfootImage("imagename.png"), 0, 0);
You need to login to post a reply.