User Tag List

Results 1 to 5 of 5

Thread: Change color for each new object

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export Module
    Retrobolt's Avatar
    Join Date
    Mar 2016
    Posts
    402
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Change color for each new object

    When you press the spacebar, I want to make a new block and give it a random color, but I can't get it working properly.

    I need to give each one a unique id to change the newest one made.

    Thanks
    Attached files Attached files

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)
    alexexhowl's Avatar
    Join Date
    Jan 2015
    Location
    RU, YKT
    Posts
    357
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    here -> color change.mfa
    Replace Color affects all instances of an object. This is because their animations share the same memory. In order for it to affect each instance individually, they would each have to have their own memory (c)

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export Module
    Retrobolt's Avatar
    Join Date
    Mar 2016
    Posts
    402
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks, but how come it makes lots of greens and reds?

  4. #4
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCiOS Export ModuleSWF Export 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)
    fnkycoldmadeanr's Avatar
    Join Date
    Jul 2017
    Location
    Melbourne, Australia
    Posts
    112
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Because your active is yellow paint your block white.
    also you could use these.

    rgb ranges 0-255


    select range of colors - GetRGB(RRandom(100, 200), RRandom(100, 200), RRandom(100, 200))
    8 colors - GetRGB(Random(2) * 255, Random(2) * 255, Random(2) * 255)
    16 colors - GetRGB(Random(4) * 127, Random(4) * 127, Random(4) * 127)

    min(16777215-255), GetRGB(,,)) returns cyan instead of white
    max(255, GetRGB(,,)) returns red instead of black

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export Module
    Retrobolt's Avatar
    Join Date
    Mar 2016
    Posts
    402
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks fnkycoldmadeanr

Similar Threads

  1. change color of active object is not working in html5
    By brett in forum HTML5 Export Module 2.5
    Replies: 9
    Last Post: 12th August 2015, 09:26 AM
  2. List Object - Change Background Color Bug?
    By CBSection31 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 28th November 2010, 03:37 PM
  3. Score Object, change Font and Color
    By nivram in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 7th March 2008, 05:07 PM
  4. Change Fill color active system object
    By lsizemore in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 17th December 2006, 05:01 AM
  5. can't change color of text of button object
    By ferack in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 6th August 2006, 05:39 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
  •