Not sure how to do this graphical effect

I’m not even sure I’m in the correct thread for this, sorry if I guessed wrong lol. I’m making a game where I need a large O shape and the O is colored by the sort of color shading scale that you see in custom color pickers, including to a point where a separate slider bar (that looks also like a color spectrum selector itself) changes the color and related shades that appear in the circle, so I can’t have just a graphical asset with a pre-decided selection, it has to be able to reflect all possible decisions. To be clear, I don’t mean the center of the circle would have the colors, I mean the scale would go around in a circle and meet back at the ends. (Ideally this would exclude the most extreme blacks and whites since I’m only trying to make the actual colors available, but if they can’t be cut out, then connecting the circle at the white and black parts is fine.) It’s a core piece of my game concept, but I have zero idea how to attach a fluctuating color scale as a key graphic instead of just, adding the appearance sprite to the game object. Can anyone help me with this please?

So like, the spectrum slider would be like the bottom one, and the circle would be all the shades on the top line made into a large hollow circle, like a big O. And of course changing on the spectrum slider changes what shows up on the circle.

There will be another object later that the player controls that interacts with the specific shades in the circle, but I… think? I can figure out that interaction mechanic on my own. Probably. XD

3169866--241424--Examples.png

I’m incredibly confused by your post, but that may be just me. I think next time you’ll have to be clear on what type of help you need, for example, with scripting, or in the editor, or perhaps creating assets for your project. Maybe you need help on all of it, but then you should do it in separate posts. I don’t think any of use have the time to think about your entire project.

With that said, if you want to change colors by script you may want to look into gradients.

In my current game I have a health ring that changes color on hit (from green to red), which I did with a gradient. If you need something like that then I can help you. Otherwise, this is all I can provide :stuck_out_tongue:

Are you wanting to make a colour picker?

Thanks guys. Yes, the primary game mechanic would involve something getting colors on it based on the shade in the circle it lands on, so hopefully the gradient scripting thing will help? Mostly I really just had no idea what method to take to get the circle to take on different shades to pick from using the other sliding color picker. Basically I need an interactive circular color picker. Sorry for a confusing question, and I will try the resources you both linked, thanks so much =D

1 Like