Player colour changes collision

Hi I’m looking for advice.

I was wondering if the character is red and there is a red wall.

Is there a way to turn the collision on or off if they match?

yea theres a way to do it though youll need to decide what the trigger will be. but the basic idea is on event get the material of the character and get the material of the other object and see if they are equal. now if you wanted to see if two different materials were the same color or shade of red than that would be way more complex. so i guess the answer is you can compare the materials relatively easily but beyond that you may run into issues.

Hi thanks for your reply I have thought of both of your examples.

I think using and comparing materials would be easier and more practical. Even if I did just stick with the primary colours.

But if I went down the shading route, there are a lot of colours and information to translate. But using an array should help with that issue.