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

Report as inappropriate.

Celestics
Celestics presents ...

2010/12/28

Free Scrolling World

I want to say thanks to PiRocks! His Maze Beta game gave me the little click in my mind for this idea. :D
-----
Move with the arrow keys.
-----
Here, the world will freely scroll by "tracking" the stick figure. Look at the source code for more information.
-----
I have included the Wanderer class (for no apparent reason).
-----
Hopefully this will be of some help!
-Celestics :D

8332 views / 12 in the last 7 days

6 votes | 0 in the last 7 days

Tags: demo with-source scrolling world scroll free

This scenario is a member of: Scrolling games


open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on Wed Dec 29 05:14:21 UTC 2010 VERSION 1.1 >Non-Players can now be added. These actors will scroll with the scrolling of the World.
A new version of this scenario was uploaded on Wed Dec 29 05:52:17 UTC 2010 >Collision Engine is Operational. Collision-Scrolling combination works fine.
kongxingakongxinga

2010/12/29

Thank you. I was wondering how to do this for a long time, and read that Greenfoot discuss bit but still could not make it work. I will study the source code.
A new version of this scenario was uploaded on Thu Dec 30 08:58:38 UTC 2010 MAJOR Bugs were fixed. Problems relating to movement tracking of non-players, as well as adding players to the World at different sectors, were fixed.
MatheMagicianMatheMagician

2012/5/26

Nice. This demo is what inspired my scrolling program.

Want to leave a comment? You must first log in.

Who likes this?

finsent63 davemib123 h123n jerty MatheMagician JavaForever