Game Maker 7 Pro (released 2007) has no native AVI playback. Its video support ended at animated GIFs and (via extension) FLV/SWF. Modern codecs (H.264, HEVC, VP9) are unsupported. Here are practical workarounds.
ffmpeg -i input.avi frame_%04d.png). Load via sprite_add() or background_add() at runtime, or pre-import as sprite strips.Use a C++ DLL wrapping DirectShow / Media Foundation to render video to a texture. Requires:
Not recommended for new projects—maintenance burden is high.
GameMaker Studio 2 / GameMaker 2023+ includes video_play(), video_sprite, supporting MP4, WebM, OGG, MOV with hardware acceleration. Import project → refactor → done.
// Create Event
global.frame = 1;
global.maxFrames = 120; // adjust
global.baseName = "frame_";
global.spr = -1;
// Step Event
if (global.frame <= global.maxFrames) {
var fname = global.baseName + string_format(global.frame, 4, '0') + ".png";
if (file_exists(fname)) {
if (global.spr == -1) {
global.spr = sprite_add(fname, 0, false, false, 0, 0);
} else {
sprite_replace(global.spr, fname, 0, false, false, 0, 0);
}
global.frame++;
}
}
// Draw Event
if (global.spr != -1) {
draw_sprite(global.spr, 0, x, y);
}
Assumes frames named frame_0001.png... Convert AVI first. Adjust naming/logic for your pipeline.