Moved from F3 thread: Colour replacing in F25 / F3

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.
  • [MENTION=5109]Simon[/MENTION] thanx for the explanation :)

    i guess for it to work effectively maintaining gameplay, it wud need to be able to swap the colors in under a 60th of a second.

    & regarding the number of colors needed, most retro game sprites were made up of 4 or 16 colors.

  • So I've built this example MFA that I've experimented with using RGB Coefficient.
    Please login to see this attachment.

    I've colored all the objects below to white, and separated the sprite layers so I can use a different color for each object. Also made a flashing single color object, cycling through the different shades when the base color of the objects frames were white.
    Tested this in different display modes. It seems to work on Direct3D 8 and Direct3D 9 display modes. I suppose if I want this to work, I'll use Direct3D 9 for the best performance possible? Assuming this works on most exporter options to date.

    EDIT: Oh wait. I just exported that MFA in flash SWF. So, RGB Coefficient DOES work with flash? Maybe it was the shaders I was thinking of that doesn't work with flash. This is interesting. I don't have any other exporters at the moment, but using RGB Coefficient command seems to be an alternative.
    Examining the colors in the flash file closely, it seems that when I compare the colors that are changed under the graphics base, they are slightly off from the above primary source. But I guess that shouldn't matter too much?

    Edited 2 times, last by N64Mario (July 11, 2018 at 10:06 PM).

  • I tried this, it seems fine, Please login to see this link.
    Press 1 to change megamans color
    then press 2 for the second color.
    X)

    Please login to see this link.Please login to see this link.
    Take a course in Clickteam Fusion Please login to see this link.
    Youtube Please login to see this link.
    Please login to see this link.

  • I tried this, it seems fine, Please login to see this link.
    Press 1 to change megamans color
    then press 2 for the second color.
    X)

    You are missing the point..... The dev has said Replace Color is the older/outdated expensive tech, and should not be used for modern gaming, which is why I was experimenting with the RGB Coefficient command. What you did was modify one of my oldest works and just did that.
    Of course I'm familiar with Replace Color for what you did, but I was experimenting with another alternative.

  • here is a similar approach using le getRGB
    Please login to see this link.

    Press 1,2 or 3 to change the color, CTRL is jump arrows moves the character.

    see if this works or we're back to square 1 lol. XD

    Please login to see this link.Please login to see this link.
    Take a course in Clickteam Fusion Please login to see this link.
    Youtube Please login to see this link.
    Please login to see this link.

  • here is a similar approach using le getRGB
    Please login to see this link.

    Press 1,2 or 3 to change the color, CTRL is jump arrows moves the character.

    see if this works or we're back to square 1 lol. XD

    I am not entirely sure what is different here than what I have done. Your object changes from white to all 1 solid color, which was the reason for splitting the sprite graphic into separated objects to load other colors.

  • I am glad this discussion came about, it was very interesting to learn about how Replace Color works. I was always puzzled why it took so long to swap out like 10 colors in animated sprites. I thought the Action just aimed for an index in a palette and swapped it all. However like so many other times it turns out that things that seem so simple can be more complex than you think!

    I don't think the loss of Replace Color in Fusion 3 will have much impact though even for pixel art games that play around a lot with palettes. Especially if we can manage and control assets easier in Fusion 3, then dealing with pre-made palette swaps might not be so bad as you'd think.

    Please login to see this link. Please login to see this link.
    Freelance Dev | Currently Working on Jarvis | Please login to see this link.

  • Yea I think I'm going to miss that old replace color being absent in F3 (since its old tech). But I'll get over it. If RGB Coefficient is a thing in F3 for the effect I would use, I'll be happy with that method if everything else works out.

    Just in case, made an update to my Please login to see this link.. includes flash app and executable app. Basically with this, I would have to change all the graphics in my game to pure white (including backgrounds created as active objects), separate the different shades into new objects, and set the colors back at run time with RGB coefficient. That's going to be a lot of work.

  • [MENTION=8318]N64Mario[/MENTION] i can imagine that being a nightmare to see where everything is in the frame editor XD

    HahaXD

    @CT: I warn you tho, the glowing armor plates of my main change depending on his health status using color replace... and you guys will have to port this crap <evil laugh>

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

  • Fusion 3 importer will not inport everything - missing functions and operations which cannot be automatically ported will be left out and a report will be generated to tell you what didn't come across automatically. As such this sort of porting where the function is missing will rely on you as the user to complete it.

  • Yea I think I'm going to miss that old replace color being absent in F3 (since its old tech). But I'll get over it. If RGB Coefficient is a thing in F3 for the effect I would use, I'll be happy with that method if everything else works out.

    Just in case, made an update to my Please login to see this link.. includes flash app and executable app. Basically with this, I would have to change all the graphics in my game to pure white (including backgrounds created as active objects), separate the different shades into new objects, and set the colors back at run time with RGB coefficient. That's going to be a lot of work.

    This is basically how I'm doing it with my own projects as well. In order to save time though I use the surface object to recolour the sprite as greyscale and then blit them out as individual sprites. Much faster because its automated. But keep in mind you wouldn't want to do this during gameplay. This is more a case for pre-rendering out your sprites and reimporting them into Fusion. It definately saves me time than doing it manually in Photoshop. My hopes is that Fusion 3 has better support for creating a character out of multiple actives.

    Professional Game Developer

  • @Please login to see this link. your post was moved to the F3 thread as this is not the right thread ton ask about F3.
    @Please login to see this link. I would have moved yours also but you quoted something here and it wouldn't make sense if moved. If you re-ask your question in the F3 thread I'll answer it there, but don't quote the post from this thread please :)

    Please login to see this link.

Participate now!

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