Hey,
I created a normal collision with getOneObjectAtOffset() and isTouching() but I need a more accurate one, because I put a little Animation on my character and so the box around him would varie if I cut it and it would be too much editing work to compensate it.
My images are have transparent (PNG format).
Do you guys know a method to do so?
Thanks for your help.
xWanna
if (Greenfoot.isKeyDown("right") && getOneObjectAtOffset(36, 0, Wände.class)==null && getOneObjectAtOffset(36, 0, Tor.class)==null){
setLocation(x + 4, y);
setImage("Schlagen/Rechts/Rechts.png");
}
and
if(isTouching(Spieler.class)) {
Leben.Leben = Leben.Leben + Heilung;
getWorld().removeObject(this);
}


