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

Report as inappropriate.

danpost presents ...


Infinite Fixed Side-Scrolling SuperWorld

This scenario contains a superclass for a bounded world that acts as an 'infinite' side-scrolling world whose layout is created as un-charted regions come into view. All charted regions are fixed in that after leaving a region, the layout is the same when returned to. The class contain only four methods. One to scroll the world, and three to add, move and remove a scrollable object into, within and from the world.

Use the arrow keys to 'move' Mr. Blue. He can push SmilyFaces around.
SmilyFaces will kill other SmilyFaces.

4389 views / 9 in the last 7 days

5 votes | 0 in the last 7 days

Tags: demo with-source scroller side-scroller danpost support infinite superclass fixed

This scenario is a member of: Support Classes by danpost

open in greenfoot
Your browser does not support the canvas tag.


A future update will allow Mr. Blue to move semi-continuously while the arrow keys are held down.
A new version of this scenario was uploaded on Sat Mar 16 01:41:21 UTC 2013 Now, continual movement while key is pressed.


Had a look at the code this is really well made thanks danpost
A new version of this scenario was uploaded on Tue Mar 26 03:33:17 UTC 2013 Re-designed to allow 'Scroll' world to act as a world superclass for an infinite fixed side-scroller. Moved 3 classes to be 'inner' classes of the 'Scroll' superclass.
Can you please post the scrolling code as my computer does not support viewing the scenarios and does not allow me to open any external file to Greenfoot? Sorry for any inconveniences.

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

Who likes this?

davemib123 nightwingx13 Draymothisk -nic- Game/maniac