How do a smooth transition of grayscale in my game?

Not favoritedFavorited Favorited 0 favourites
  • 3 posts
From the Asset Store
20 high quality click sounds, ready to improve your game's UI instantly
  • HELLO! How can I make the transition of my game from a color scale to a grayscale but make it slow, so that little by little my screen changes to gray smoothly and not in such an aggressive way. I am already using the grayscale effect but I want it to activate slowly.

    i need a capx please

  • Simply change the effect parameter from 0 to 100 over time.

    | Global number p‎ = 0

    + System: Every tick

    -> System: Set p to min(p+20×dt, 100)

    -> System: Set layout effect "Grayscale" parameter 0 to p

    .

    Another option is to use Tween behavior. Start a value tween on some object from 0 to 100. While this tween is running, set effect parameter to Object.Tween.value("tag")

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks friend, you always get me out of trouble, what would we do without people like you, I don't know anything about mathematics and even less about code, for that I thank you. Here I leave the capture so that it can be useful to others like me.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)