Hey I'm using a script in my game that displays a text in the log after every action the player does.
In the script I added an outline to the text, but the text and the outline is black. It will not change to any other colors. Can someone help me solve this?
Thanks.
Here is my script:
/*
argument0 = x
argument1 = y
argument2 = text
argument3 = color
argument4 = outline color
*/
draw_set_color(argument3);
for (i=0; i<global.maxline-1; i+=1)
{
for(ii=argument0-1;ii<=argument0+1;ii+=1)
{
for(n=argument1-1;n<=argument1+1;n+=1)
{
draw_text(ii,n,argument2);
}
}
global.line[i] = global.line[i+1];
}
draw_set_color(argument4);
global.line[global.maxline-1] = argument2;
Your only drawing the text once, right? That means that the text is set to the closest draw_set_color() varible that means that you'll have to do like this:
//draw_text_outline();
/*argument0 = x
argument1 = y
argument2 = text
argument3 = color
argument4 = outline color*/
draw_set_color(argument4);
for (i=0; i<global.maxline-1; i+=1){
for(ii=argument0-1;ii<=argument0+1;ii+=1)
{ for(n=argument1-1;n<=argument1+1;n+=1)
{
draw_text(ii,n,argument2);
}
}
global.line[i] = global.line[i+1];
}
draw_set_color(argument3);
global.line[global.maxline-1] = argument2;
draw_text(ii-2,n-2,argument2);
it draws a new text on the outline without messing up th code :D BTW I changed the arguments to be exact TRY IT OUT!