Replace Color event absolutely tanks the frame rate

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.
  • Please login to see this attachment.
    I used the "Replace Color" event for my main Active to try and avoid the long process of recoloring every single frame of every animation to make a new active, however, upon the event activating, the frame rate absolutely tanks, with large amounts of lag. Is there any way to fix this?

    (Event triggered by "Varia Suit" object.)

  • Hi there,

    I seems you are running the loop always which could cause the slowdown.
    There are multiple ways to solve this.

    Just to test this:
    On the Varia suit event (where you change the colors) Set "flag 1 On" for the character.
    Flags -> Set on -> Flag 1

    Add an extra condition for the event "Is a flag 1 off?" for the character.
    (Character) -> Alterable Values -> Flags -> Is flag a off? -> Flag 1

    Edited 3 times, last by Wirta (December 14, 2018 at 5:09 PM).

  • Yeah, unfortunately this action is just too slow to use in real time. What you can do is make clones of your player sprite, do the color replacement when the frame loads and swap between clones during gameplay.

  • Yea, which is why I suggested using RGB coefficient. It's supposedly faster, and won't have compatibility issues with new software. I've made an experiment that makes use of the feature for such classic games that require it, which seems to work on multiple export modules.

    I've also heard Shaders can work just as well, but doesn't seem to be compatible with some exporters.

Participate now!

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