Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

Hmm, that could very well be it.

I started a fresh new project and have GMLive set up and everything. The only thing I have there is a function that sets the current draw color, font, etc

Something along the line of 

function draw_set(_alpha, _font, _color) {

   draw_set_alpha(_alpha);

   draw_set_font(_font);

   draw_set_color(_color);

}

Then I simply executed that function 3 times in my Step/Draw event

draw_set(1, fn_SegoeUI_14, c_white);
draw_set(1, fn_SegoeUI_14, c_white);
draw_set(1, fn_SegoeUI_14, c_white);

This causes a crash after a while.

Removing these 3 lines allowed the game to run indefinitely. Since the function arguments are treated like local vars, that could be it.