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

2015/11/13

Image Border issue any help?

Zerosigma Zerosigma

2015/11/13

#
I am having a issue my images border which counts as part of my DodgeItem.class is causing my game over screen to appear . I was wondering if anyone knew a way to remove the boarders so this would not happen or had some kind of workaround.
danpost danpost

2015/11/13

#
It seems to me that there are only two ways to work around the issue. You can use pixel-perfect collision (which, by the way, involves extensive checking for non-transparent colors of the image against other images and can easily cause lag in the scenario) or you can break the image into parts (legs, arms, body and head -- the arms and legs could even be upper and lower parts) which would eliminate parts of the original image that are not needed. As an example of how breaking the image up would be coded, refer to my Animated Character scenario.
You need to login to post a reply.