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

Report as inappropriate.

danpost
danpost presents ...

2017/2/11

Scroller Class Demos

Five -- no, SIX -- different scrolling demos in one scenario. All demos use the same simple Scroller class discussed in my Scrolling Tutorial located at

http://www.greenfoot.org/scenarios/18226

Each using a different scrolling mechanism (mouse, keyboard, actor, image and continuous -- and more recently included, SHAKE).

The Scroller class code can be found in the following discussion thread location:

http://www.greenfoot.org/topics/57567/0#post_111359

7091 views / 23 in the last 7 days

7 votes | 0 in the last 7 days

Tags: demo scrolling danpost

This scenario is a member of: Demos by danpost, Support Classes by danpost


Your browser does not support the canvas tag.
A new version of this scenario was uploaded on 2017-03-30 03:14:39 UTC
A new version of this scenario was uploaded on 2017-10-16 13:29:26 UTC
A new version of this scenario was uploaded on 2017-10-16 13:41:22 UTC
A new version of this scenario was uploaded on 2017-11-13 03:47:42 UTC
A new version of this scenario was uploaded on 2017-11-13 03:49:48 UTC
YogibaerYogibaer

2017/12/3

It`s a very nice and helpfull demo set and used codes are published ad different places and well documentated. Great Thanks for all of this. Nevertheless in other scanarios there is a button "open in Greenfoot environment". Here it is especially needed to see the configuration of Word, Subwold, Actor, Subactor and/or Helpclass. Please can you give this posibilities also here. (a lot of browsers don`t support applets, as all ready known) Thanks Yogibaer
danpostdanpost

2017/12/3

@Yogibaer, nothing is special about class configurations -- and the Scroller class is not directly linked to the World or Actor class, but is a "help class" in itself extending the Object class (the root of ALL classes). A subclass of world that is to scroll will create a Scroller object and tell it when and how much to scroll. That is basically it.
A new version of this scenario was uploaded on 2020-11-02 11:50:16 UTC
KizetsuKizetsu

2023/5/14

How do i download this Scroller class demo? i really need the code in it.
danpostdanpost

2023/5/14

@Kizetsu, all codes are provided in the tutorial (link in description).

See all comments

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

Who likes this?

Fire nsbgg AussieDauz data17 Maus2525 Paul12345 tkiesel