answersLogoWhite

0

This highly depends on the game, but here is an example:

create:

self.hp = 100;

step:

if irandom(90) = 1

instance_create(self.x,self.y,obj_bullet);

if self.hp <= 0

instance_destroy();

Obviously, you would need to add some kind of attack to reduce its hp.

User Avatar

Wiki User

15y ago

What else can I help you with?