Hi all,
Pretty new to this and need to get this done for school.
I have a player and enemy class within my world. I want to be able to get the image the player is currently using from within my enemy class.
I have tried this but it tells me: "can not find symbol - variable image 17"
private void die(){
ScrollingWorld theWorld = (ScrollingWorld) getWorld();
Player player = (Player) theWorld.getPlayer();
if(isTouching(Player.class) && player.getImage().equals(image17))
{
getWorld().removeObject(this);
}
}
