Hi. I’m currently trying to figure out how to map territory for a game mode in my game by coloring a specific part of the ground beyond some sort of line a certain color. In short, I want the blue teams side of the ground to be colored blue and the red team part of the ground colored red. Problem is, the territory is constantly changing so statically coloring things won’t work. The line that divides the territory will be constantly moving along the x axis based on the players gain.
You can put every part that’s in the blue side and need to be colored in a folder and the same for the red and loops trought the two folders to change parts colors !
Sorry, Like I said this is hard to explain. The line that splits the 2 territories is constantly changing. I can’t statically color things. So the line could be all the way at blue team base, or at red team base depending on the points. Even with this, I still need the terrain to be colored. I wish there was a way to wrap a color layer around a certain area
Perhaps you could use a red and blue image and change the image offset gradually in either direction.
I suggest looking into sprite sheets for more detailed information
Worst comes to worst, make it so each part is individually conquerable, and when one team has conquered it it changes color. (when it’s split 50/50 you could have both colors on it or a checker pattern)