Scrollbars are 'sprites' that stop the camera from moving past them in Keen Galaxy. Keen 5 has horizontal scrollbars only while Keen 4 and Keen 6 have both horizontal and vertical scrollbars. Both types are essentially the same; they are used to divide a single level up into sections and often to hide object or passageways from the player.
As they are so simple and similar between games all three Galaxy episodes will be covered on a single page.
For Keen 4\6 there are two initiation codes, one for each scrollbar. For Keen 5 only one. Both initiation codes are the same; they run the spawn scrollbar code, but horizontal bars run it with a value of 0, vertical bars with a value of 1.
The spawning code does not spawn a sprite as such, instead it creates a 'scroll block'; remembering where the scrollbar is and storing that in memory. It should be noted that Keen 5 has the possibility of spawning vertical scrollbars even though it does not use them.
|Patch: Keen 4|
If too many scrollbars are placed in a single level then the game will run out of memory to store them in. When this happens the game crashes with an error message. See also Patch:Game errors.
|Patch: Scroll bar errors|