Is it possible for the RGB coefficient to only affect a part of the sprite?

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.
  • For example, I have a laser beam. I want the middle part to always be white, but the outline can change into a random color. Is it possible for the RGB coefficient to only affect the outline and not the middle part, or I have to create two separate object?

  • Sure, you can just make the laser object white in the middle and say red for the outline.
    Then when you shoot it, use the color replacer to change the red to whichever color you want.

    Ex.

    Always ->
    Set counter to random(3)+1

    Player Shoots laser
    +counter value = 1
    --> replace color (255,0,0) of active 'laser' with (whatever color #1 you want goes here)

    Player Shoots laser
    +counter value = 2
    --> replace color (255,0,0) of active 'laser' with (whatever color #2 you want goes here)

    Player Shoots laser
    +counter value = 3
    --> replace color (255,0,0) of active 'laser' with (whatever color #3 you want goes here)

    Small word of warning: The color replacer is a really cool thing however there is always a very small pause whenever I use it. If you're using this for an action-y type of game it might not work out so well and slow things down.

    Weebish Mines, my retro Metroidvania!
    Please login to see this link.

  • My problem with this feature is that it replaces all instances of the color and not on specific objects. Kind of limits it sadly.

    Please login to see this link.
    Please login to see this link.|Please login to see this link.|Please login to see this link.

  • ??? It shouldnt replace every objects color, if you go to Animation > Replace Color > Desired Color, it should only replace the color for that specific objects animations.

    Fusion Veteran Since 2005. Example Projects: Please login to see this link.

  • "I think what he mean is, if you have multiple parts of the sprite that have the same color, you won't be able to change the color of only one part.
    Am I right? "

    I think what he means is that it replaces all instances of that color on all active objects at once. So say if you had 10 blobs and wanted to use the color replacer to just turn one of them yellow it won't work and instead turns all 10 blobs yellow. This would be a great update for MMF3 by the way!

    To go around what you're talking about it's an easy fix though- Let's say the guy has gray colored armor and a gray colored sword. Just change the RGB co-efficient by a single digit for the sword and it'll spare it from being recolored. And best of all, the colors will still look the same type of gray since it'll only be "off" by 1 digit. Ex. to the naked eye an RGB 30/30/30 looks just like RGB 30/30/29.

    Just an idea. Personally, I love the color replacer for what I use it for (even with its limitations).

    Weebish Mines, my retro Metroidvania!
    Please login to see this link.

  • i've found that it doesnt effect the cloned objects :)

    tho wud be even better if u didnt need to clone objects & cud just scope them & hav it work. ;D

    unfortunately tho, this doesnt work on ios which, wen trying to optimize & keep file sizes low is where u really need it :(

  • "I think what he mean is, if you have multiple parts of the sprite that have the same color, you won't be able to change the color of only one part.
    Am I right? "

    I think what he means is that it replaces all instances of that color on all active objects at once. So say if you had 10 blobs and wanted to use the color replacer to just turn one of them yellow it won't work and instead turns all 10 blobs yellow. This would be a great update for MMF3 by the way!

    To go around what you're talking about it's an easy fix though- Let's say the guy has gray colored armor and a gray colored sword. Just change the RGB co-efficient by a single digit for the sword and it'll spare it from being recolored. And best of all, the colors will still look the same type of gray since it'll only be "off" by 1 digit. Ex. to the naked eye an RGB 30/30/30 looks just like RGB 30/30/29.

    Just an idea. Personally, I love the color replacer for what I use it for (even with its limitations).

    Yeah this, what i tried to make Before was to fill a room with several human objects but I wanted their shirts to be different colors to make it look alive. but it doesnt seem to be possible to give each created object to have different colors.

    Please login to see this link.
    Please login to see this link.|Please login to see this link.|Please login to see this link.

  • Well, you can still do something similar but it'd require a bit more work.

    Why not have your human object with different animations like 'green', 'blue', 'yellow' and etc where each has a different colored shirt?
    Then just spread values at the beginning of the frame and assign a random # to another value and do something like:

    If (the rnd value) = 1 then change animation of human to "red"
    If (the rnd value) = 2 then change animation of human to "blue"
    If (the rnd value) = 3 then change animation of human to "yellow"

    and etc.

    You would still get the effect you're looking for just in a different way.

    Weebish Mines, my retro Metroidvania!
    Please login to see this link.

  • It seems like the color that is changed to stays after restarting the frame. I have some events:
    Start of frame
    -Replace color #1 with a random color
    -Replace color #2 with a random color
    -Set angle to random(360)
    Upon pressing "Z"
    -Restart the frame

    But when I press Z, only the angle changes, the color is still there. If I want different colors, I have to exit and reload the frame.
    Is this a bug of am I doing something wrong?

  • Del_Duio: Yeah I do that or have an object float around the object but i tried to minimize the amount of work by making it systembased. Not a big deal really, it was a prototype.

    Please login to see this link.
    Please login to see this link.|Please login to see this link.|Please login to see this link.

Participate now!

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