Hi,
I am trying to get thie to work. If my actor hits the bottom of the level AND had 0 lives, end game
If not, she is placed at the starting position. This is what I have
1 2 3 4 5 6 7 8 9 10 | public void fall() { setLocation ( getX(), getY() + vSpeed); vSpeed = vSpeed + acceleration; if ( atBottom() && ((ShroomScore) getWorld().getObjects(ShroomScore. class ).get( 0 ))== null ) gameEnd(); else { setLocation((Alice. class ), 20 , 340 ); } } |