This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
EnderPicture
wrote ...
2015/1/3
Can you move Objects off screen?
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
2015/1/3
#
Refer to the documentation of the World class -- particularly the section on constructors.
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.
X