Page 1 of 1

Global Color Transform

PostPosted: Sun May 17, 2015 5:39 am
by Runouw
I've decided to reveal an unfinished trigger function because it's going to be useful to many people.

This isn't an official feature in the game yet because it's a non-essential function. The flashplayer games are meant to load quickly and post-effects like rain, snow, and global color transforms were deemed "too laggy" of a feature to put in the core story levels. Also, programming the menus for it in the level designer is very taxing on time when development needs to be spent on more important things.

Anyway, for those of you who like code editing, here is the Set Post Filter function.
Code: Select all
llitem:6;322;1451;64;64;0;1;setpostfilter,100/100/100/100/0/0/0/0/0/0/-100/0

This example uses a saturation = -100, which turns the whole level monochrome.

The order of the color modifiers are the following (all require a "/" to separate them):
  • redMultiplier
  • greenMultiplier
  • blueMultiplier
  • alphaMultiplier
  • redOffset
  • greenOffset
  • blueOffset
  • alphaOffset
  • brightness
  • contrast
  • saturation
  • hue
For reference, the values do the same exact thing as if you applied a color transform an item, but instead, it applies it to the whole screen.

Re: Global Color Transform

PostPosted: Sun May 17, 2015 7:26 am
by ColdWater
Finally ,I can make a good retro level.
Thanks Runouw

Re: Global Color Transform

PostPosted: Sun May 17, 2015 11:14 am
by Dtroid
Thank you Runouw!

Re: Global Color Transform

PostPosted: Sun May 17, 2015 12:39 pm
by Niicola
Runouw wrote:Anyway, for those of you who like code editing [...]

Perfect 8-)

Re: Global Color Transform

PostPosted: Wed May 20, 2015 7:14 am
by -BY
Sepia for those in need.
Code: Select all
llitem:6;91;1416;64;64;0;1;setpostfilter,100/100/100/100/42/22/10/0/0/0/-100


It's like awesome to work with this.