There is no single solution for this problem. In fact, you could solve it in several ways.
First, you'll need to be able to select the object you want to color. For that, you could make a variable that stores the handle to the object:
Then, you'll need to store the red/green/blue for each object. For that, an array might be usable:
First, you'll need to be able to select the object you want to color. For that, you could make a variable that stores the handle to the object:
active = car repeat if keyhit(2) active = car if keyhit(3) active = bws if keyhit(4) active = fws if keyhit(5) active = middle entitycolor active, red, green, blue ..
Then, you'll need to store the red/green/blue for each object. For that, an array might be usable:
Dim red(100), green(100), blue(100) active = car sel = 0 repeat if keyhit(2) active = car: sel = 0 if keyhit(3) active = bws: sel = 1 if keyhit(4) active = fws: sel = 2 if keyhit(5) active = middle: sel = 3 entitycolor active, red(sel), green(sel), blue(sel) if keydown(16) red(sel) = red(sel) + 1 ..etc