Files
AM2R-Community-Updates/scripts/create_gamma.gml
2020-12-22 20:54:55 -06:00

20 lines
507 B
Plaintext

/// create_gamma(x, y, id, facing)
met = instance_create(argument0, argument1, oMGamma);
met.facing = argument3;
met.myid = argument2;
with (met) {
set_monster_vars(argument2);
shell = instance_create(x, y, oMAlphaShell);
shell.sprite_index = sMGammaShell;
shell.damage = damage;
shell.hpush = 5;
shell.vpush = -3;
event_user(3);
}
if (global.monstersalive == 0) {
sfx_stop(sndMGammaIntro);
sfx_play(sndMGammaIntro);
mus_gamma_monster();
}
global.monstersalive += 1;