What It Does
This function allows you to re-color any sprite, and set the transparency of the sprite as well.
How To Use
First, place the script in Global Code. Then when you want to use it, use this command:
- Code: Select all
Recolor(R, G, B, Transp);
where R is the red color, G is green, B is blue, and Transp is how see-through he is.
Correct Format:
- Code: Select all
Recolor(255, 255, 255, 0);
The code:
Place this in Global Code
- Code: Select all
void Recolor(int R, int G, int B, double A)
{
r = R;
g = G;
b = B;
transp = A;
}
Screenshots: