User Tag List

Results 1 to 7 of 7

Thread: Example: RGB coefficient Color Transition

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Example: RGB coefficient Color Transition

    I needed a way to make smooth color transitions for a project of mine and decided to share the result here.

    This example shows how you can change the color of an object using the 'Set RGB coefficient' function. Specifically how to make a transition from one given color to another and also determine the time taken using a given timer value.


    File: exampleColorTransition.mfa




    Hope it will be of use to someone

  2. #2
    Clicker Install Creator Pro
    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)

    Join Date
    Jul 2013
    Location
    Sweden
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks mate !!

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Very nice example. Thank you for posting it.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Chrille, this example can be used for some pretty nice effects in a game. I have a question. Is there away to set the color of and object and also the frame background color in the 1st frame and have the object/objects and frame background color to be saved so the object and background color is transferred to the game frame or 2 frame.

    Example in frame #1:
    1. You have an object and select "red" for it's color using your example.
    2. You set the background frame color to "blue" using your example.
    3. You start the game and jump to frame #2 and the object is "red" and the background of the frame is "blue"
    Is this possible? If so how would this be done?

    Thank you.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would use an array. For example, when coloring an object, you write the color value to ArrayX(1) and for the background, you write the color value to ArrayX(2) and save the array file. Then, when frame two loads, you load that array file and set the object color to 'Read value from ArrayX(1)' and the background color to 'Read value from ArrayX(2)'.

    Is that what you meant?

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Yes Sir,.that's what I mean. I'm going to give it a shot. Thank you..

  7. #7
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)

    Join Date
    Mar 2016
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Chrille, this is exactly what I was looking for!
    But before I create a new "How Do I..." thread, can you tell me which part of your code I need to allow my background to transition smoothly between a few pre-defined colours?
    It looks a bit complicated for me.

    Thanks!

Similar Threads

  1. App Icon/Launch Image Color Issues - 256 Color Mode
    By JoeRoth12 in forum iOS Export Module 2.5
    Replies: 5
    Last Post: 17th November 2014, 07:03 PM
  2. [BUG 256.34] Replace color doesn't always work in standard 256 color mode
    By Corlen in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 26th October 2014, 10:21 AM
  3. Transparent color not applied when 16bit color mode
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 25th September 2012, 06:11 AM
  4. Transparent color is visible in 16bit color
    By ASD in forum SWF/Flash Export Module Version 2.0
    Replies: 1
    Last Post: 1st September 2010, 04:51 PM
  5. Picture editor: color problems in 256 color mode.
    By contra in forum File Archive
    Replies: 5
    Last Post: 13th December 2006, 10:58 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
  •