Computer Science Canada Help? |
Author: | Dazzle [ Tue Jan 22, 2013 7:51 pm ] |
Post subject: | Help? |
Hello im not too sure if this forum is still alive or not but i am having some difficulties with turing .. i have made my own custom tiles for turing so i can make a 2D-RPG and its tiles based .. but i keep getting this error The Color Value 7001 Is Out Of Bounds. Max Color Value : 256 |
Author: | Tony [ Tue Jan 22, 2013 8:01 pm ] |
Post subject: | RE:Help? |
7001 is indeed larger than 256. |
Author: | Dazzle [ Tue Jan 22, 2013 8:03 pm ] |
Post subject: | RE:Help? |
I just need a solution or something is there a way to change it or is there a program to use so i can make stuff in 256 color value?? PS. a newbie with turing |
Author: | Zren [ Tue Jan 22, 2013 8:06 pm ] | ||
Post subject: | RE:Help? | ||
Turing only supports a maximum of 1024 colour ids. Note how maxcolor maxes out at 1023 in the following code. Read more here: RGB.AddColor
|
Author: | Dazzle [ Tue Jan 22, 2013 8:09 pm ] |
Post subject: | RE:Help? |
But than how would you add detail to your tiles?? is there a program to do separate MAPPING? the only programs ive seen i dont understand how to intagrate with turing |
Author: | Zren [ Tue Jan 22, 2013 8:34 pm ] | ||
Post subject: | RE:Help? | ||
You can only have 1024 colour ids at one time. You can draw with colorId=1, then set it to another color value, and draw with it again. Once it's drawn to the screen, you don't need to keep it anymore. This can be proven with:
If the left half of the screen (the first draw operation) really depended on colorId=0, it would have changed when we changed it to another colour. You can use Pic.Draw() if you want to draw tiles anyways (it's not limited to the colours you've set). Turing has really weird limitations. MAPPING? Are you referring to a program that will edit tile based maps? |
Author: | Dazzle [ Tue Jan 22, 2013 8:38 pm ] | ||||
Post subject: | Re: Help? | ||||
this is what im working with...
Mod Edit: Please wrap you code in either of the following in order to preserve whitespace (indentation) and to highlight the syntax.
|
Author: | Zren [ Wed Jan 23, 2013 12:53 am ] |
Post subject: | RE:Help? |
You don't draw pictures with Draw.FillBox. You use Pic.Draw. You confused a pictureId with a colorId. |
Author: | Dazzle [ Sun Jan 27, 2013 11:04 am ] |
Post subject: | RE:Help? |
lol.. thanks! |