This site requires JavaScript, please enable it in your browser!
Greenfoot back
ninjapuffin
ninjapuffin wrote ...

2020/7/14

problem in my code

ninjapuffin ninjapuffin

2020/7/14

#
i was doing micheal kollings penguin jump game and there is a problem. can somebody please help!
ninjapuffin ninjapuffin

2020/7/14

#
it says it is having a problem in this method
public boolean onGround()
    {
        Actpor under = getOneObjectAtOffset( 0, getHeight() / 2 ground.class
        return under != null;
    }
ninjapuffin ninjapuffin

2020/7/14

#
and this part of the method
Actor under = getOneObjectAtOffset( 0, getHeight() / 2 ground.class
ninjapuffin ninjapuffin

2020/7/14

#
the problem is on getHeight() / 2 ground.class
danpost danpost

2020/7/15

#
ninjapuffin wrote...
the problem is on getHeight() / 2 ground.class
Looks like you are missing a comma, a closing parenthesis and a semicolon.
You need to login to post a reply.