r/gamemaker•
troutT20

YYC Compile

Resolved

I've been trying to use the YYC compiler for Android and iOS and it throws this error:

Final Compile...Error : gml_Script_scr_ball_draw(14) : Assignment of an empty value (function does not return anything?) Error : gml_Script_scr_ball_draw(17) : Assignment of an empty value (function does not return anything?)Compile finished.

This is the script its complaining about, and this is is in a draw event.

//How can we draw others without drawing ones self?
draw_self();
//Tap and drag, draws line.  
if global.ballPressed = true 
{
    if fired = false
    {
        var dashTotal;
        for (dashTotal = 0; dashTotal < dist; dashTotal += width) 
        {
            if (dashTotal < dist - width) 
            {
                xx = (x + lengthdir_x(width, dir)) +  lengthdir_x(dashTotal, dir);
                yy = (y + lengthdir_y(width, dir)) +  lengthdir_y(dashTotal, dir); 
                dash = draw_sprite_ext(spr_arrow_dash, 0, xx, yy, 2.5, 2.5, dir, c_white, 0.5);
            }
        } 
        arrow = draw_sprite_ext (spr_arrow_point, 0, mouse_x, mouse_y, 2.5, 2.5, dir - 90, c_white, 0.5);
    }
}

The only thing I found was that possibly something wasn't returning a proper value, but to me it looks like it is written correctly.

Any thoughts or help would be appreciated.

Posted Apr 15, 2016, 1:26 AM UTC

15
Loading comments…