⚠ Cookies ⚠

By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.

Projects

AGS EngineViewsViewFrame - Transparency & Tint (Engine and Editor)
ryanb84[i]Posted in this [url=http://www.adventuregamestudio.co.uk/forums/index.php?topic=48373.0]thread[/url].[/i]
[hr]

Having an Engine and Editor ability to change the transparency and/or tint on a ViewFrame.

[b]ViewFrame.Tint[/b] (int red, int green, int blue, int opacity)
[b]ViewFrame.DisableTint[/b]      [i]<-- which does the same as setting [/i]opacity[i] to 0[/i]
[b]ViewFrame.Transparency[/b]

Items required to use this new Tint/Transparency are Objects and Characters.
  Examples:
    - A character/object using Transparency and a frame uses transparency, AGS would use the character/object as the master percentage.
    - A character/object using a Tint of red and the ViewFrame is using a tint of blue, the sprite would be shown as purple.

Note: I really don't understand how AGS's [i]saturation[/i] and [i]luminance[/i] works which is why I put opacity instead. If there are betters ideas for this, feel free to suggest it
HaloaI don't think this is a good idea. It would be better to be able to attach events to certain frames instead.

- Alan
Crimson Wizard[quote author=Alan v.Drake link=issue=410.com801#com801 date=1372398710]
I don't think this is a good idea. It would be better to be able to attach events to certain frames instead.

- Alan
[/quote]

If you mean - attach a function callback per frame to draw over a tint when this callback is called - I don't think this is a good idea either. This would be overkill - for this particular situation.

I feel guilty for forgetting to post my further opinion on this back when this suggestion was first made. And I probably will post this now there too.
Thing is, that AGS allows to replace view frames with dynamic sprites, which could be Tinted, or else modified. This really makes such properties excessive, in my opinion.
© Adventure Game Studio 2024. Page design by loominous and Darth Mandarb; coding by AGA.
Page generated on 07 May 2024 at 01:47:18