Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

To change max hp, add

maxhealth = 4;

to "create" script. (variables)

To explode on death, add

if (fork()) {
    var _x = x, _y = y;
    wait 1;
    if (!instance_exists(self)) { // we're dead!
        instance_create(_x, _y, Explosion);
    }
    exit;
}

to "step" script. (fork)

Deleted 2 years ago