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

2015/1/3

Can you move Objects off screen?

EnderPicture EnderPicture

2015/1/3

#
I want to move actors to x = 0 and keep on going, like to x = -10 Greenfoot limits actors inside the view area, I do not want that.
danpost danpost

2015/1/3

#
Refer to the documentation of the World class -- particularly the section on constructors.
davmac davmac

2015/1/3

#
Use the 'bounded' parameter to the World class constructor to specify whether you want a world to be bounded (actors contained within world bounds) or unbounded (unconstrained actors). Normally your world constructor has a line like:
1
super(600, 400, 1);
You need to add the 'bounded' parameter. For an unbounded world, that should be false:
1
super(600, 400, 1, false);
You need to login to post a reply.