cliftonbazaar
Member
How do I put a variable into draw_set_colour in GMS2?
When I do this it tells me that the draw_set_colour is wrong
Error is "draw_set_colour argument 1 incorrect type (string) expecting a Number (YYGI32)"
James
Code:
global.second_colour = "c_yellow";
draw_set_colour(global.second_colour);
draw_rectangle(340, 600, 940, 650, true);
Error is "draw_set_colour argument 1 incorrect type (string) expecting a Number (YYGI32)"
James