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

2012/5/22

World Movement

thefutureisnow thefutureisnow

2012/5/22

#
Is it possible to make the world move instead of the actor; I'm trying to create a game which is in a world that is too large to fit on the screen. So I want the world to move under the actor.
Builderboy2005 Builderboy2005

2012/5/22

#
There isn't any way to make the world move instead of an the actor, but what you can do instead is create the illusion of World movement by moving *all* actors in the opposite direction that you want the world to move in.
thefutureisnow thefutureisnow

2012/5/23

#
Yeah, that's what I was thinking, my problem is how to map it in a way that, if I return, it will show the same thing. I found the "city" project, I'm going to see if I can see how they did it.
Builderboy2005 Builderboy2005

2012/5/23

#
What do you mean by 'If I return'? If you return from what?
thefutureisnow thefutureisnow

2012/5/23

#
For example, if I was playing a game, I would be able to go someplace, walk away from it, and when I walk back to it again, it will have the same stuff there.
thefutureisnow thefutureisnow

2012/5/23

#
I think I found a solution to this though.
Builderboy2005 Builderboy2005

2012/5/23

#
As long as you make your Greenfoot world an open world (it's an option in the constructor) objects will be able to move anywhere (including off the screen) without a problem.
You need to login to post a reply.