I'm trying to get an if-statement working and i've tried various things, but it doesn't seem to return true... ever.... any ideas? I'm using :
and i tried:
And even some other things I found in previous discussions about this subject but they don't seem to work. I know it gets into the method itself because ... well it's an act method and the object is in the world and does respond, but just this if(getImage()) statement doesn't work. Again, if anybody has a solution please help ^^
1 | if (getImage().equals( new GreenfootImage( "feather.png" ))) |
1 2 | private GreenfootImage feather = new GreenfootImage( "feather.png" ))) if (getImage().equals(feather)); |