It's easy to make:
You use one string for code function (changed by input)
Then make a "y=" string.
And add into while loop in drawing obj:
Code:
temp_i = -draw_range;
draw_line(nullvector,NULL,100);
while (temp_i<draw_range)
{
x = temp_i;
str_cpy(temp_s,"y=");
str_cat(temp_s,function_code);
var_for_name(temp_s);
draw_line(vector(x,y,0),line_color,100);
temp_i += 1;
}
That's easy on practice.