User Tag List

Results 1 to 7 of 7

Thread: A bug with replace color

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Sep 2007
    Location
    Poland
    Posts
    232
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    A bug with replace color

    Hi
    I found a bug with "replace color". It happens when there is more than 1 object. Check this example:
    User clicks on the active object - replace color (pick from 16,16) to getRGB(random(255), random(255), random(255)).

    Or another example:
    User clicks on the active object - replace color (cyan) to (white) <-- there of course is used standard active object.


    What will happen? All active object will change their color. I would like to change the only one, which has been clicked.


    How to fix this?

    Thanks for the answer

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: A bug with replace color

    This is not a bug. It is how MMF2 handles object selection. You need to check into spreading values.

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Sep 2007
    Location
    Poland
    Posts
    232
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: A bug with replace color

    You mean for example:
    Start of frame - spread value A in alterable value A (active object) to 0

    User clicks on the active object and alterable value A of the active object = 1 - replace color...

    If I click on the object which alterable value A is 1 all are changing their colors, if I click any other, nothing happens.

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCSWF Export Module
    N64Mario's Avatar
    Join Date
    Nov 2008
    Location
    USA
    Posts
    1,308
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)

    Re: A bug with replace color

    Yea I'm getting this problem too..... I was curious to see how I can do this, so I was trying to make an example of this using the correct method of spread value. Even with my code to separate the active objects apart, they all change color.

    Well anyway, here's the basic method of spreading objects around.

    * One action when event loops
    = Spread value Alterable Value A ("Active") in Alterable Value A

    * Mouse is over [Active]
    = Start loop "ID" NObjects("Active") times.

    * On Loop "ID"
    + Mouse is over [Active]
    + Alterable Value A of ("Active") = Loopindex("ID")
    + User clicks on [Active].
    = Insert your action here

  5. #5
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: A bug with replace color

    "Replace color" works across all objects, not individual instances, because (as far as I remember) it changes the frames stored in that object at runtime. I think that you might be able to use a specific pixel shader in the hardware-accelerated runtime to achieve a colour changing effect like you're going for.

  6. #6
    Clicker Multimedia Fusion 2

    Join Date
    Sep 2007
    Location
    Poland
    Posts
    232
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: A bug with replace color

    Well, ok.
    Thanks for the answers.

  7. #7
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: A bug with replace color

    Quote Originally Posted by Grim
    If I click on the object which alterable value A is 1 all are changing their colors, if I click any other, nothing happens.
    DavidN is right. I forgot that the actives use the same visual data throughout all copies. To get around this, you could try storing the RGB values in an alterable value, or do what DavidN suggested.

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


Similar Threads

  1. [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
  2. Replace color: bug?
    By Pineapple in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 10th January 2012, 11:53 PM
  3. Color bug in 'replace color' option
    By N64Mario in forum Multimedia Fusion 2 - Technical Support
    Replies: 27
    Last Post: 7th June 2009, 03:18 AM
  4. Replace Color?
    By TheUpperHand in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 24th March 2008, 10:02 PM
  5. replace color
    By ayejes in forum File Archive
    Replies: 7
    Last Post: 23rd February 2008, 12:26 AM

Posting Permissions

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