How to Make a Boss in Game Maker

TIME : 2016-01-07
How to Make a Boss in Game Maker

It depends heavily on the game you're building, but the bones of it look like this.

In the create event:

self.hp = 100;

In the step event:

if irandom(90) = 1
instance_create(self.x,self.y,obj_bullet);
if self.hp <= 0
instance_destroy();

That gives you a hundred hit points, a one-in-ninety-one chance each step of firing a bullet, and destruction when health runs out. What's missing is the other half: something in the player's code that actually reduces hp on a hit. Add that and you have a functioning boss.