Does RegionTint work on directly drawn objects?

Started by CaptainD, Sat 28/07/2018 22:30:58

Previous topic - Next topic

CaptainD

I'm calling this code every loop, have tried it both before and after the function to draw shapes, but it doesn't seem to be doing anything.

Code: ags
function R_tint ()
{
  c=1;
  while (c<6)
  {region[c].Tint(Random(200)+55, Random(200)+55, Random(200)+55, Random(60));
   c++;
  }
}


I have checked that TintEnabled==true for all regions.  I thought the problem might be having overlapping regions but I removed the offending overlap with no problems.  I don't get any error messages, but there appears to be no tinting happening.    The AGS manual notes "This function only works in hi-colour games." so I have set the game to 16-bit colour.  As usual I have probably missed something obvious so apologies in advance!
 

Crimson Wizard

Quote from: CaptainD on Sat 28/07/2018 22:30:58
I'm calling this code every loop, have tried it both before and after the function to draw shapes, but it doesn't seem to be doing anything.

Region.Tint does NOT apply to room background, only to characters and objects. To apply tint on all the room, use SetAmbientTint.

Quote from: CaptainD on Sat 28/07/2018 22:30:58The AGS manual notes "This function only works in hi-colour games." so I have set the game to 16-bit colour.

This means "not 256-color" games.


SMF spam blocked by CleanTalk