When SLUDGE starts, an initial (blank) background image is set up to be the same width and height as set for the project in the Project Settings dialog in the SLUDGE Project Manager application. However, you can change the size of the background image to an area larger than the window or screen. Then, by moving a "camera", you can view different areas within the scene... the technique known as scrolling.
To change the size of the background image, use the setSceneDimensions function. Then, load your graphics in the usual way; using the addOverlay function. Remember, if you want to change the size of background image back to the values specified in the project manager you will need to call the setSceneDimensions function again, with the original values as parameters.
When the background is resized, the camera is moved to the top left hand corner of the total area. To move the camera elsewhere in the scene, use the aimCamera function.
SLUDGE can handle multiple layered parallax scrolling. Each layer can be added using a single call to the built-in parallaxAdd function and any parallax layers loaded will be visible through areas of your scene coloured bright cyan (0, 255, 255 or #00FFFF). (With 32-bit images, the alpha channel is used for transparency instead!) The function parallaxClear removes all loaded parallax layers from memory.
SLUDGE and this SLUDGE documentation are copyright Hungry Software and contributors 2000-2012