I am having trouble makeing the rope/line from the grappling hook a different color. There are 4 color values in the config: "primaryLineColors" : [ [153, 76, 0, 0], [204, 102, 0, 0] ], "altLineColors" : [ [255, 255, 255, 255], [255, 0, 0, 255] ] Now I know about RGB/HSB colors and I know they all use 3 values to get a certain color. So first of all I have no clue what the fourth value is that the code is asking for (ex. [255, 255, 255 ,255] <--). And finally, Whenever I try to put in a new color using a RGB/HSB color, and just leaving the last value at a 0, the libe just comes up invisible in the game... Any clue how to change these to a color I choose without it being invisible?
It's probably using RGBA, where A stands for alpha, or its level of transparency. So 0 alpha is invisible, 127 is halfway transparent, and 255 is fully visible.
Yep, the last number is alpha. You don't even need to include it, you can just do RGB and it will work perfectly fine.