Author Topic: Light Blue Code  (Read 1759 times)

Quick! What's the code for a light blue laser projectile?

Ex.
Code: [Select]
colors[0]     = "0.5 0.5 0.5 0.9";
colors[1]     = "0.5 0.5 0.5 0.0";
sizes[0]      = 0.15;
sizes[1]      = 0.15;
^ that is I believe, grey?

If RGB is a 255 255 255 255, and blockland uses a 1 1 1 1 format, think for a second.
Find a RGB value you like for the projectile color, then divide it by 255 so it should be roughly a 1 1 1 1 type number.

http://cloford.com/resources/colours/500col.htm

A light blue would be sorta like:
Code: [Select]
                colors[0]     = "0.55 0.6 0.9 0.9";
colors[1]     = "0.55 0.6 0.9 0.0";
This gives is a more tealish tint. Increase the 5 and 6 to make it approach white more. Increase the first .9 column to make it slightly more blue.
Nothing goes above 1.
The last number on each row affects transparency.
the [ 0 ] designates the color it has when it starts, the [ 1 ] is the color it has when it dissappears.
« Last Edit: October 17, 2009, 08:55:04 PM by ladios »

A light blue would be sorta like:
Code: [Select]
                colors[0]     = "0.55 0.6 0.9 0.9";
colors[1]     = "0.55 0.6 0.9 0.0";
This gives is a more tealish tint. Increase the 5 and 6 to make it approach white more. Increase the first .9 column to make it slightly more blue.
Nothing goes above 1.
The last number on each row affects transparency.
the [ 0 ] designates the color it has when it starts, the [ 1 ] is the color it has when it dissappears.
Which exact code did you use for your laser repeater?

If RGB is a 255 255 255 255, and blockland uses a 1 1 1 1 format, think for a second.
Find a RGB value you like for the projectile color, then divide it by 255 so it should be roughly a 1 1 1 1 type number.

http://cloford.com/resources/colours/500col.htm
Thanks :D
EDIT: So a light blue can be
Code: [Select]
0.4 0.7 1

If RGB is a 255 255 255 255, and blockland uses a 1 1 1 1 format, think for a second.
Find a RGB value you like for the projectile color, then divide it by 255 256 so it should be roughly a 1 1 1 1 type number.

http://cloford.com/resources/colours/500col.htm

Which exact code did you use for your laser repeater?
I won't tell you because I don't want whatever you make to be exactly like what I have made. Plus, this way you learn better.
And there is a way to get BL to read the "255 255 255 255" thing, but I forget how.

you make to be exactly like what I have made. Plus, this way you learn better.
And there is a way to get BL to read the "255 255 255 255" thing, but I forget how.

You mean convert it to a 0-1 color?

Code: [Select]
%color = "255 128 0"; // orange
%convert = vectorScale(%color,1 / 255);

I won't tell you because I don't want whatever you make to be exactly like what I have made. Plus, this way you learn better.
And there is a way to get BL to read the "255 255 255 255" thing, but I forget how.
Well I'm not trying to copy you. I need an projectile similar to that color.


You mean convert it to a 0-1 color?

Code: [Select]
%color = "255 128 0"; // orange
%convert = vectorScale(%color,1 / 255);
Nah theres a way to write it directly. I've seen it done on some items before, not on Blockland though, but other torque things.

Nah theres a way to write it directly. I've seen it done on some items before, not on Blockland though, but other torque things.
Probably has to do with engine edits.

Which exact code did you use for your laser repeater?

DL it and check out the data

DL it and check out the data
I tried opening the server.cs on the laser repeater. The script didn't even scroll because it was that short. So there wasn't anything about the projectile, though I do recall Ladios releasing them as a set, might check there.

Code: [Select]
     colors[0]     = "0.86, 0.216 0.230 0.9";
colors[1]     = "0.86 0.108 0.115 0.0";
sizes[0]      = 0.15;
sizes[1]      = 0.15;
« Last Edit: October 21, 2009, 10:11:31 AM by Jimmg »