03-02-2008, 08:26 AM
Autoscrolling Panoramas
by RPG Advocate
saved from Phylomortis.Com
by RPG Advocate
saved from Phylomortis.Com
Introduction
This script adds support for scrolling panoramas. The panorama can be scrolled simultaneously in both the horizontal and vertical directions and works for panoramas of any size. To set a panorama to autoscroll, use the "Script" event command to change the variables "$game_system.autoscroll_x_speed" and "$game_system.autoscroll_y_speed".
Each frame, the panorama will scroll one pixel for each eight speed units. For example, if you want the panorama to scroll one pixel every four frames, use a speed value of 2. For the horizontal and vertical directions, positive speeds scroll the panorama to the right and up, respectively, while negative speeds scroll left and down. Please be aware that the scrolling attributes are retained when changing maps, so set both speeds to 0 before switching maps if you don't want the new panorama to scroll.
Demo
>Click<
Script
Autoscrolling Panoramas