User Tag List

Results 1 to 5 of 5

Thread: Color mask, blend effect and parameter

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleFirefly 3D Module

    Join Date
    Dec 2008
    Location
    Italy
    Posts
    404
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)

    Color mask, blend effect and parameter

    Hi,
    I want to use the blend effect SimpleMask.fx to change the color of a sprite during a game (player is hit --> white color mask on player --> color mask effect then gradually fades).
    To do that I need to manage during runtime the parameter effect "fC", which controls the color of the mask. But GetRGB(255, 255, 255) doesn't work... I don't know which is the syntax it requires.

    rgb.png

    How can I do that?
    Thanks!

  2. #2
    Clickteam Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleInstall Creator ProFirefly 3D Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    BartekB's Avatar
    Join Date
    Aug 2013
    Posts
    622
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Instead of GetRGB, use:

    R + ( G * 256 ) + ( B * 65536 )

    (Where R is Red, G is Green and B is Blue)
    - BartekB, a.k.a Uppernate
    Join the Click Converse Discord! - https://discord.gg/7RNXFrC
    Dungeon Raiders! - Link soon™

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleFirefly 3D Module

    Join Date
    Dec 2008
    Location
    Italy
    Posts
    404
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Thank you Bartek, but when I put the formula as Parameter Value, I get a sintax error and I can't go ahead:

    Immagine.jpg

    What am I doing wrong?

  4. #4
    Clickteam Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleInstall Creator ProFirefly 3D Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    BartekB's Avatar
    Join Date
    Aug 2013
    Posts
    622
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    The letters R, B and G should be represented with colour values e.g.

    255 + ( 255 * 256 ) + ( 255 * 65536 ) = White
    - BartekB, a.k.a Uppernate
    Join the Click Converse Discord! - https://discord.gg/7RNXFrC
    Dungeon Raiders! - Link soon™

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleFirefly 3D Module

    Join Date
    Dec 2008
    Location
    Italy
    Posts
    404
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Thank you!

Similar Threads

  1. ASB blend effect
    By SolarB in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 24th September 2012, 06:05 PM
  2. Restore effect parameter defaults at runtime?
    By Nobuyuki in forum Hardware Accelerated Runtime
    Replies: 3
    Last Post: 14th March 2011, 07:56 AM
  3. Making shadows using the "Mask" effect
    By alxmrg in forum Hardware Accelerated Runtime
    Replies: 10
    Last Post: 15th June 2010, 01:01 PM
  4. Color Tinting Ink Effect?
    By Steven_Provost in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 29th January 2008, 07:09 AM
  5. Color parameter
    By LazyCoder in forum Hardware Accelerated Runtime
    Replies: 2
    Last Post: 22nd January 2008, 10:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •