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

2013/5/22

Greenfoot bug!

Game/maniac Game/maniac

2013/5/22

#
Scaling an image gives you a background which shouldn't be there. when I comment out the scaling method the strange background disappears. Why is this happening?
bourne bourne

2013/5/22

#
Are you scaling the image for the World's background?
danpost danpost

2013/5/22

#
In what way is the background strange after scaling? I do know that you should not scale the same image multiple times. In other words, you should get the original image and scale it differently instead of scaling a scaled image. make use of one of the GreenfootImage constructors to create a new image to scale.
Game/maniac Game/maniac

2013/5/23

#
download the source code for this: http://www.greenfoot.org/scenarios/8424 and the problem is on line 114 of Worldy
Game/maniac Game/maniac

2013/5/23

#
To see what the difference is go to Mod -> Textures -> then click on the Bot
Game/maniac Game/maniac

2013/5/23

#
Ok I fixed it, it seems that the background didn't like being set with a transparent background, so I decided to make Greenfoot draw the image instead
You need to login to post a reply.