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

2011/12/21

Cannot Find Symbol?

minecraft15 minecraft15

2011/12/21

#
came up with the error 'cannot find symbol-method move (int)' any ideas?
private void processKeys() {
        if(Greenfoot.isKeyDown("up")) {
            setImage(rocketWithThrust1);
            if (count >= 25) {
            
            } else {
            count = count + 1;   
            speed = count/5;
            }
            move(speed);
        } else {
            setImage(rocket);
            if (count <= 0) {
                
            } else {
            count = count- 2;     
            speed = count/5;
            move(speed);
            
            }
        }
Builderboy2005 Builderboy2005

2011/12/21

#
Is this class extending the Actor class? If not, have you written a move() method for that class to use?
minecraft15 minecraft15

2011/12/22

#
It is extending the Actor class.
Builderboy2005 Builderboy2005

2011/12/22

#
Are you using the most recent version of Greenfoot? And could you post the entire class code so I can see if it might be something obscure?
You need to login to post a reply.