(Formerly known as SetRegionTint, which is now obsolete)
Region.Tint(int red, int green, int blue, int amount)
Changes the region to have RGB tint (RED, GREEN, BLUE).
The red, green and blue values are between 0 and 255, and you supply the same
values that you would use in the editor.
AMOUNT determines the extent of the tinting, and is from 1 to 100, reflecting a percentage
figure. 100% will completely colourize characters in that area to the specified colour.
NOTE: The tint will be reset when the player leaves the room,
so you need to use it in Player Enters Room if you want a permanent
change.
NOTE: This function only works in hi-colour games.
NOTE: To remove the region tint, set the LightLevel property to 0.
Example:
region[2].Tint(180, 20, 20, 50);
will set region 2's RGB tint to (180, 20, 20) with 50% opacity.
See Also: Region.LightLevel
|