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

Results

Search

Scenarios

Easy Infinite Scroller Support Class

Contains a support class for an infinite scrolling world. Very easy to use.

… superclass for an infinite scrolling world; capable of horizontal, … to switch between demo world and sample game world. Demo controls: … : Avoid on-coming rocks. Grid world demo: 'up', 'down', ' … been slightly modified to scroll actors of this type …

Scrolling Man

A demo for a scrolling world

… idea from Celestics free scrolling world. I am posting it just … that the rest of the world will be scrolling around in … . Remember that everything in this world is flipped from usual java …

Scrolling Tutorial

A tutorial on scrolling worlds

A tutorial on scrolling worlds. The Scroller class code can be found in the following discussion thread location: http://www.greenfoot.org/topics/57567/0#post_111359 A demo of the Scroller class used can be found at this location: https …

Free Scrolling World

A world in which one Actor may be "tracked" in a free-scrolling World.

… arrow keys. ----- Here, the world will freely scroll by "tracking" the stick …

Scroller

Scrolling world moves in any 2D direction

This is my first real scenario. I've made a scrolling world that can move in any 2D direction. Use the arrow keys to move. Known Glitches: World will "tear" apart or gaps will appear between images.

Scrolling world class test

class for making a scrolling world

download and check ScrollController docs for use.

Infinite Scrolling World

A scrolling world with an infinite scrolling system.

… demo of a scrolling super world you have a infinite scrolling …

Scrolling Test/World

Example scrolling world

… is my very first scrolling world. Download it and use its …

ScrollingWorld showcase

This scenario showcases a ScrollingWorld class I wrote. You're free to download the source code and check it out. It will let you make worlds that can scroll like in Mario.

… later. Q: Can the background scroll? A: Nope. Making a … actors to build a coherent world, a motionless background hopefully … world that dwells *within* the world. You can access the world … that lives in the world with getUnderlying(). …

Scrolling world

Fast engine for walking in big worlds

… of a way to scroll through a world too big to fit … that walks around in the world. It is controlled with your …

Infinite Fixed Side-Scrolling SuperWorld

A virtually-infinite side-scrolling superclass for a world created on the go that does not change.

… a superclass for a bounded world that acts as an 'infinite … ' side-scrolling world whose layout is created as … only four methods. One to scroll the world, and three to add … into, within and from the world. Use the arrow keys to …

Slide Bar Scrolling Super World

A scrolling super world which uses slide bars for the scrolling

This example of a scrolling world works with slide bars from … slides can be used to scroll over the whole screen. Descriptions …

scrollworld

Scrollable world extension for greenfoot.World

… (also outside the current view/world) and scroll in any direction unlimitedly … Tux with the arrow keys - scroll the view with: 'A', 'W …

Mouse Scrolling World

A scrolling system using the mouse to scroll.

… limit the size of the world if you don't need … an infinite world. Examples and discriptions how to …

Tree Simulation

Plant trees ? My Scroll World experiment.

So, this is an unbounded scroll world I'm testing out. (Actually, … pressing DOWN. You can scroll aroudn the world by moving your moues …

Scrolling SuperWorld

A super-class for a scrolling world; fully documented and very easy to use.

An easy-to-use world superclass that implements scrolling actors … greater than one, all dimensions (world and universal) are rounded up …

Greenfoot4Android Demo

a simple demo of scroll world

a simple demo of scroll world This is a demo for …

Test game(collision and scrolling world)

testing collision, scrolling world, and other shiz

known issues *very laggy *very very laggy *super messy and unefficient code controls *drag left mouse to select, right click to move *press s to stop selected units from moving

JetPackGuy3

Scrolling World

… to make a working scrolling world. I'll add the bad …

Smooth Scrolling classes

A ready to use Scrolling functionality for your pleasue

… spacebar to stop. *** SCROLL DOWN TO PLAY, READ IF … but build BIG levels to scroll around in :) Anyways, since … all objects that should scroll with the cam must … you want them to scroll correctly, if you have … refer to the total World, not just the part …

Discussion

Scrolling world problem by Genota

… scrWorld the world the given background image is to scroll in * @ … world background image } /** sets the world background image determined by the current scroll … to this line in the world: scroller.scroll(getWidth()/2-player.getX …

Image scroller by Alexlazea

… scrWorld the world the given background image is to scroll in * @ … scrWorld the world the given background image is to scroll in * @ … world background image } /** sets the world background image determined by the current scroll

How to achieve Line Of Sight by SickTrickz832

… / 2); // add actor to world (wherever) scroll(); // sets initial background image and … of visible world private void scroll() { // determine scrolling offsets and scroll int dsX …

Scrolling world by GB309

… scrWorld the world the given background image is to scroll in * @ … scrWorld the world the given background image is to scroll in * @ … world background image } /** sets the world background image determined by the current scroll

How Do I make Camera movement only go Horizontal and vertical at a certain height? by danpost

… tutorial, the world class tells the scroller when to scroll and by … of visible world private void scroll() { // determine scrolling offsets and scroll int dsx …

How Do I make Camera movement only go Horizontal and vertical at a certain height? by Fire

scroll(); } } // attempts scrolling when actor is not in center of visible world … private void scroll() { // determine scrolling offsets and scroll … from center screen scroller.scroll(dsx, dsy); …

Scrolling world by GB309

… )); fillImage = getBackground(); } World world = new World(scrollingWidth*getCellSize(), scrollingHeight*getCellSize(), … adjust scroll amount // move all objects so background covers the world mainActor …

Scrolling world by GB309

… )); fillImage = getBackground(); } World world = new World(scrollingWidth*getCellSize(), scrollingHeight*getCellSize(), … adjust scroll amount // move all objects so background covers the world mainActor …

Problems with making a Object find itself in an Arraylist by danpost

… to world class // the 'scroll' method private void scroll() { // determine amount to scroll (dsx … , dsy) scroller.scroll(dsx, dsy); // have scroller scroll world

how to get changeX and changeY by brothermic

scroll and by how much. */ public class Scroller { private World world; // view window world … dsy; // scroll image if (scrollImage != null) { world.getBackground().drawImage ( …

Trouble with background by Al3x7373

scroll and by how much. */ public class Scroller { private World world; // view window world

How to keep actor at the center by Conscience

… scrollImage, -scrolledX*world.getCellSize(), -scrolledY*world.getCellSize() ); } else { // update scroll positions scrolledX …

Second Player in a Platform game by CowboyIggy

… character can't scroll the world, also tried … (ScrollActor, 110, 290); scroll(); prepare(); }[/code] [code … { if(ScrollActor != null) scroll(); } public void scroll() { /* int dsx = …

Problems with making a Object find itself in an Arraylist by danpost

scroll and by how much. */ public class Scroller { private World world; // view window world

Scrolling background? by SachaTb

scroll and by how much. */ public class Scroller { private World world; // view window world

Side Scrolling Platform by Samuaelk

scroll and by how much. */ public class Scroller { private World world; // view window world

Scrolling World by jdkdoen05

scroll and by how much. */ public class Scroller { private World world; // view window world

Scrolling World by danpost

… () { scroll(); } // attempts scrolling when actor is not in center of visible world … private void scroll() { // determine scrolling offsets and scroll int dsx …

Need an object fixed to the screen, not the map. by Tavi

… = 0 ; public int throwingStar = 0; /**** * *SCROLL WORLD VARIABELEN * * * ********/ /** The number of cells …

Memory issues by AuroraGamer

… -=dx; scrolledY-=dy;// track scroll amount // move main actor … adjust scroll amount // move all objects so background covers the world mainActor … super(1000, 650, 1, 9000); // scroll world constructor call; last parameter is …

Comments

Scrolling SuperWorld by danpost

… left edge of the scrollable world, the following can be used … -offset from left edge of scroll world wombat.move(leftOffset); // move actor … to left edge of scroll world act(); // adjust the scrolling background …

Slide Bar Scrolling Super World by Gevater_Tod4711

… insgesammte verschiebung der ganzen scrolling world vom startpunkt aus. Wenn du … versuch mal meine Infinite Scrolling World (http://www.greenfoot.org/scenarios … /8270) oder meine Mouse Scrolling World (http://www.greenfoot.org/scenarios …

Demo of Dragon Savior by limefortheworld

… the canvas, go to the world, and where it says super … screen boundaries. Next, to actually scroll, you will need some sort … suggest looking at other scrolling world games. How I worked it …

Jump! by Flourytub43

i reallly like the game. I want to make a scrolling world game but have no idea on how to make the world scroll. wanted to know if you could put the source code for the game up so i could see how u made it scroll.

Triguna-Dragon Ball 7 by mjrb4

… 's really annoying having to scroll to get to the right …

Platformer Tutorial by lordhershey

Making a scrolling world that is not a memory … platform game that does not scroll like this one [youtube]p7SzOzj4s74 …

Nightmare: Emergence by Builderboy2005

… the top left of the world. When tilex increases, the camera … 'insert' themselves into the scrolling world. Now, with all this in … two thing. We have a world camera that can move around … and look at the world. And we have objects that …

Nightmare: Emergence by Builderboy2005

… the top left of the world. When tilex increases, the camera … 'insert' themselves into the scrolling world. Now, with all this in … two thing. We have a world camera that can move around … and look at the world. And we have objects that …

Wombat Combat by Zamoht

… style game therefore the random world and the invisible walls. Maybe …

Infinite Scrolling World by Gevater_Tod4711

… in the middle of the world anymore when he reaches the … edge of the scrolling world? Well this is not provided …

Scrolling world by Blkhwk93

Quick question, your scrolling world code has been very helpful ( …

Mouse Scrolling World by Gevater_Tod4711

A new version of this scenario was uploaded on Tue May 14 14:32:29 UTC 2013 Added methods to scroll to a certain position and to get the actors location in the scrolling world.

Fullscreen and Scrolling world implementation by danpost

… two different behaviors for the world (scrolling and full-screen). However … intended for a full-screen world (and, of course, the full … not intended for a scrolling world). I am not saying that …

Infinite Fixed Side-Scrolling SuperWorld by 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.

Dynamic Lighting by FlyingRabidUnicornPig

A new version of this scenario was uploaded on Sun Jun 09 23:14:55 UTC 2013 Increased performance when working with big, scrolling worlds, or other kinds of unbounded worlds.

Scrolling SuperWorld by RonMexico

… with creating platforms for my world. I figured the easiest way … to add platforms to my world would be by instantiating a … over the workspace, saving the world when I've placed them … change the parameters for the world object by instantiating the scrolling …

Global Men by Lilpowerdude

… not to make it a scroll world, cuz Im going to have … objects moving around and a scroll world will be just a hassle …

Super Platformer by Builderboy2005

I think you might want to look into using some sort of scrolling world instead of making your world just really long. It would make for nice and smooth scrolling, and probably also some performance increase as well!

Scrolling SuperWorld by danpost

A new version of this scenario was uploaded on Wed Nov 21 12:13:38 UTC 2012 A super-class for a scrolling world; fully documented and very easy to use. Restricted setting scrolling background when cell-size of world is greater than one.

Greenfoot4Android Demo by Upupzealot

… you want to make a scroll World, you can focus on the …