Z
zendraw
Guest
So each part of this image, that is colored in teal, has max green and blue, but red varies betwean 0-255, and depending on that it shuld load a color from an array that contains the colors, but for some reason it remains white, while the parts shuld be colored in red.
here is the image
here is the code
https://cdn.discordapp.com/attachments/466249643865538569/620764465901862922/unknown.png
this is in the create event
also for some reason this doesnt let the game to compile and throws an error in the compiler
colr=color[floor((oc.r*255.0)/5.0)];
here is the image
here is the code
https://cdn.discordapp.com/attachments/466249643865538569/620764465901862922/unknown.png
this is in the create event
Code:
for (var i=0; i<56; i++)
{
col[i]=c_red;
}
colr=color[floor((oc.r*255.0)/5.0)];