Greetings,
I’m currently working on a Paper2d project where the player has the ability to change colors depending on what buttons are pressed. In the project I currently have 7 color states to shift between Magenta, Cyan, yellow, red, blue, green, and neutral, each with an Is<Color> bool variable (i.e. IsRed or IsBlue). I’ve created a form state function that activates whenever I pressed the button associated with a color. For instance, when I press 2, it sets IsBlue to True and goes in a sequence of setting the other color forms to False. Also, when an Is<Color> is set to True, the sprite of the player actor is set to the same associated color manually. Right now, when I press the button associated with IsRed, it sets the sprite to the color red and whenever I press the button for IsBlue, it sets the sprite color to blue. However, for some reason when I press the buttons associated with the other 5 colors I have setup, which are set up identical to red and blue, it doesn’t change the color to the one I’m pressing. To test this, I printed a message detailing what color should be activated but every time I press a different colored associated button, it always displays blue, or displays red and then blue and never changes. Is there something about linear colors that I do not understand?