I made a tutorial for how to program a boss fight in GML. It’s geared toward the MaGMML2 engine, but the techniques should be generally applicable.

Here’s the link!

Here’s the example boss created in the tutorial (Quick Man from Mega Man 2): Final Battle