it your color method before the draw method?
no there is no color method I just used this:
GreenfootImge theImage = new GreenfootImage("file");
drawImage(theImage, 0, 0);
try to use png images which have an alpha chanel.
Are you using JPEG images?
no I already use png images.
try it with setting a color with full transparency before drawing the image
no this also doesn't help.
I didn't use any color before so this is not the failur I think.
The transparency is only at a smal area not at the whole image and it is partly transparent so I don't think that I am drawing this.
How do you create the image that you are 'drawImage'ing onto? what are the dimensions of the two images (by name) and are you actually using (0, 0) as the location to draw the image on the other image?
I'm just loading the image that I'm 'drawImage'ing using GreenfootImage image = new ...
0, 0 are the coordinates I use to draw the image on the other.
I don't get what you mean with dimenstions. Do you mean .png or .jpg? (If yes: all are png's)
By dimensions, I mean what is the width and height of the image being draw, and what is the width and height of the image that is being drawn onto.
And how do you create the image that you are drawing onto? You say you create the one with GreenfootImage image = new GreenfootImage("file"); I am asking about the other image.
If you are using the background image of the world which you have cleared, then I suggest 'fill'ing it with 'Color.white' before drawing an image onto it.
the other image is also loaded using new GreenfootImage("file");
the sizes of both images are 1200x700.
I don't use the background for this.
Can you reproduce this reliably - could you, for instance, upload a scenario which demonstrated the problem?
I'm trying to upload the szenario but this will take maybe one or two days because it's a little to big to upload it.
And I've never seen such a problem with other szenarios. Last time I saw this (in the same scenario) I thought I had made a mistake with the image but now I've got the problem again with a totally other image.
So I can't just upload any szenario because most time I'm doing this it works. Only in a view cases (two this time) there is this problem. I'll try to upload the scenario today.