Report as inappropriate.
Here's a quick demo of the Wanderer helper class - actors that extend this class will be able to call setLocation even to go somewhere off screen. The co-ordinates are still stored, and when the actor enters the world again it will become visible.
UPDATE: As of Greenfoot 2.0 this helper class / scenario is redundant - there is a new constructor on World that states whether the world is bounded or unbounded, so this functionality is built in!
7435 views / 8 in the last 7 days
This scenario is a member of: Reusable actors & support classes