How do I Change an Objects Color... Correctly?

Not favoritedFavorited Favorited 0 favourites
  • 5 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • No seriously though, I have no idea why this isn't working. The color change is like random, increasing any of the bars to 255 makes the color white and if I make all the bars 0 the color is determined by the last bar changed. If I do Red last it makes it Neon Cyan (Can't think of the color name), if I do Green last it's Purple, and if I do Blue last it's Yellow... did I miss something? Haven't really tried doing something like this before.

    Pretty much, 3 slide bars for the player and I tried having the preset color be like Neon Cyan (Still can't think of the color name)

  • Are those local variables not set to static? That will likely makes it couldn't retain it's value and always reset every time condition met.

  • rgbEx works in the range 0-100. If you want an expression that works in the range 0-255, use rgbEx255. See the documentation in system expressions.

  • rgbEx works in the range 0-100. If you want an expression that works in the range 0-255, use rgbEx255. See the documentation in system expressions.

    First time I've ever had a mod respond to me, I appreciate that. While you're here I have one last question. Is there a way to spawn every object you have in a family on start of layout if they weren't on the layout before? I have a different function to rearrange all of them to the right place, I just don't want my layout to be like... 200,000 by 5,000

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • rgbEx works in the range 0-100. If you want an expression that works in the range 0-255, use rgbEx255. See the documentation in system expressions.

    Actually, that did the same thing but now if Blue is the last one I make 0 it makes the color Green... that's all it really changed.

    Edit: I made them Global Variables instead of Local and it fixed it, my bad.

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