String text color from events

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi, I'm using some string objects that I need to adjust the color during runtime. I'm using the "set text color" from a calculation that accepts an integer number. How do I set this number? I tried to use decimal values from hex colors but this seems wrong (like #FF9900 = 16750848 is giving me a pale blue instead of orange).

  • Use the getRGB function (in the Special Object) to convert R, G, B into the format Fusion uses.

    I believe the format itself is R + G*256 + B*256*256. By using this format, Fusion can convert the 3 RGB numbers into a single number (so it basically achieves what the #RRGGBB format does, but without having to go hexadecimal)


    Please login to see this picture.


    So to set your string to #FF9900, you'd enter this:


    Please login to see this picture.


    That would produce the actual number for you, which is 255 + 153*256 + 0*256*256 = 39423 (you could just enter 39423 if you wished)

    Please login to see this link.
    My Fusion Tools: Please login to see this link. | Please login to see this link. | Please login to see this link.

    Edited 13 times, last by Volnaiskra (April 23, 2023 at 2:07 AM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!