Adventure Game Studio

AGS Support => Modules, Plugins & Tools => Topic started by: Gal Shemesh on Tue 05/08/2025 21:02:13

Title: Gradient Transition Module
Post by: Gal Shemesh on Tue 05/08/2025 21:02:13
About:
This is a simple gradient transition module to use when changing rooms. It is based on 4 pattern sprites, each for swiping the screen from a different direction towards the other.

(https://www.dropbox.com/scl/fi/8zvwa1t1k2xu49j51rzr3/Gradient-Transition-Module-Sample.gif?rlkey=iu4yqw3dbuoxklw0tsri3wmzz&dl=1)

Installation:
1. Import the GradientTransition.scm script into your project.
2. Import the 4 PNG files into your project and set the corresponding sprite IDs they get within the module script.
3. Make sure the script is above all other scripts.
4. Under General Settings, set the default transition when changing rooms property to Instant.

Usage:
Instead of using the Charcter.ChangeRoom() function, call any of the gradient transition functions .gradientLeft(), .gradientRight(), .gradientUp() or .gradientDown(), along with a room number to change to in the parentheses; if nothing is passed in the parentheses, the transition will begin from a solid black screen.

* If you wish to use the gradient transition for the first room, create a black overlay when the room starts before fade in, and after fade in remove it and call any of the functions without passing anything in the parentheses.

You may download (https://www.dropbox.com/scl/fo/xu8w9zh7tt3s8rwy8uxpq/AERJllw7Xrkp1uIBR4iMPkM?rlkey=7fk6rdekpsyne9x20xe5sq6d9&dl=0) the module from my personal Dropbox.


Changelog
=========
Version 1.0.0
Released: 5th August 2025
Notes: Initial release