If you use Lite-C, then you must use
"if (is(Load_Bar, VISIBLE)) {...}" instead of
"if (Load_Bar.visible == on) {...}" and don't use the wait(1);
on_level is working in my Lite-C Project and I use the following code:
Code:
function eb_fnc_ladebalken(var v_percent)
{
eb_pan_ladebalken.size_x = maxv(integer((screen_size.x-40)/100*v_percent), 1);
}
on_level = eb_fnc_ladebalken;