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

2012/6/9

World to move on too the next world after completing the other,

1
2
3
gusbus123 gusbus123

2012/6/26

#
i dont think greenfoot being outdated would be a problem, but wouldnt trust my word for it since i am a new guy. But i think it might be where u have ur setWorld area. Did u create ur new world under the "World" classes? and check if ur NameOfWorld is exactly the same as the world. If its none of these then i really dont kno.
davmac davmac

2012/6/26

#
If your version of Greenfoot is too old, it won't have the 'setWorld' method.
nha nha

2012/6/27

#
Indeed, after I installed Greenfoot with version 2.2.1, I manage to compile and run my game. Thank you.
ThinkingPainter ThinkingPainter

2012/6/27

#
Used this got my world to load but how do i fix this error
else if (Greenfoot.isKeyDown("space")) {
            getWorld().addObject(new ShotLvL2(this), getX(), getY());
            shotTimer = 100; // delay next shot
this part is giving me the error
new ShotLvL2(this)
error is cannot find symbol - constructor ShotLvL2(BlipLvL2)
davmac davmac

2012/6/27

#
ThinkingPainter, I think you should start a new discussion. When you do: What constructors (if any) do you have in your ShotLvL2 class? (If you don't know what I mean by 'constructor', just post all the code for the class).
You need to login to post a reply.
1
2
3