I am currently working on a project in GameMaker Studio 2, but it is saying that my function takes no more than 0 arguments, when I have set it to 4. Can anyone help?
function drawBoxRect(bdl, bdr, bdu, bdd){ if (global.CharacterBattling == 0) { draw_set_color(c_maroon); } if (global.CharacterBattling == 1) { draw_set_color(c_navy); } if (global.CharacterBattling == 2) { draw_set_color(c_purple); } draw_rectangle(bdl - 4, bdu - 4, bdr + 4, bdd + 4, false); draw_set_color(c_black); draw_rectangle(bdl, bdu, bdr, bdd, false);}drawBoxRect(border_l, border_r, border_u, border_d);
I tried changing the function name in case it overlapped with a built-in function, however I still get the same result.