Gradient Transition Module

Started by Gal Shemesh, Tue 05/08/2025 21:02:13

Previous topic - Next topic

Gal Shemesh

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.



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 the module from my personal Dropbox.


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

SMF spam blocked by CleanTalk