hello, this is yet another noob programmer trying to figure out what's wrong with my code. If you've seen DBZ, yes this is the same gohan and cell. anyway, i cant get my main character (gohan) to lose health when attacked. i have the following codes that deal with health: for gohan,
private int health = 9001; //its over 9000-don't know if this works
public void setHealth(int points) {
health += points;
}
public int getHealth() {
return health;
}
//and
//this works
private void hitEnemy() {
Cell cell = (Cell) getOneObjectAtOffset(0, 0, Cell.class);
if (cell != null) {
cell.setHealth(-10);
}
}

