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

2020/6/1

transparent image

1
2
Roshan123 Roshan123

2020/6/1

#
before (without animation and transparent image) when the enemy touches the player ,the player loses health after animation with the transparent image without touching the player , the player loses health what is the problem i am having .plz tell me danpost
Kostya20052011 Kostya20052011

2020/6/1

#
I don't danpost, but answer, just Greenfoot considers the transparent background as part of the image, and it seems to the person that the objects do not touch, but the program considers otherwise)
Roshan123 Roshan123

2020/6/1

#
thank you so much. your helping is a great thing for me. i have another question how will i fix it will it be fixed by cropping the image?
Kostya20052011 Kostya20052011

2020/6/1

#
About cropping-Yes,but only if your image is square.
Roshan123 Roshan123

2020/6/1

#
ok; thanks for the reply
danpost danpost

2020/6/1

#
Are you wanting that the enemy become invisible and the player pass without losing health? or, do I misunderstand?
Roshan123 Roshan123

2020/6/1

#
no
Roshan123 Roshan123

2020/6/1

#
i mean the background image is transparent
Roshan123 Roshan123

2020/6/1

#
the background image is transparent not the enemy image
danpost danpost

2020/6/1

#
Roshan123 wrote...
the background image is transparent not the enemy image
"background' is not a good word to use if you are referring to the image of the enemy that is not colorized (or, the transparent part of the enemy image). I have available a scenario that can easily minimize any excess transparency of an image, Image Transparency Adder/Trimmer, which may come in handy.
Kostya20052011 Kostya20052011

2020/6/1

#
That's not what he was talking about.
danpost danpost

2020/6/1

#
Kostya20052011 wrote...
That's not what he was talking about.
Explain then ... please
Kostya20052011 Kostya20052011

2020/6/1

#
Well, I already answered him, but he asked this: his white background(extra in the picture) was transparent and he (the person) did not see this background, but the program saw it, and it turned out that the person seems that the objects do not touch, but the program is considered differently. He was interested in how to fix it.
Kostya20052011 Kostya20052011

2020/6/1

#
By the way, the script to which you gave the link does not run... It seems that something from the Java code is not rewritten to the Java script code
Roshan123 Roshan123

2020/6/1

#
Kostya20052011 wrote...
Well, I already answered him, but he asked this: his white background(extra in the picture) was transparent and he (the person) did not see this background, but the program saw it, and it turned out that the person seems that the objects do not touch, but the program is considered differently. He was interested in how to fix it.
yes you r right what i m thinking
There are more replies on the next page.
1
2