image

image

Tuesday, January 27, 2015

Indie Day 70 - I'm Pretty Glad I Already Dealt With a Similar Issue


okay so i fixed the thing by creating a global variable in the first room called slimebosslives.


then in the slime boss's step event i put this;

if (hp<1){
instance_destroy();
slimebosslives=0;
}

so that when the boss dies, the variable goes to 0.

and then, when the room starts the boss will read the variable, and then destroy itself if it's 0.

if (slimebosslives==0)
instance_destroy();

nice and simple stuff.

No comments:

Post a Comment