Add project code
This commit is contained in:
21
objects/o_explosion/Step_0.gml
Normal file
21
objects/o_explosion/Step_0.gml
Normal file
@@ -0,0 +1,21 @@
|
||||
if pause_movement() { exit; }
|
||||
|
||||
if !created_damage_objects {
|
||||
hurt_instance = instance_create_depth(x, y, 0, o_all_hurt);
|
||||
with(hurt_instance) {
|
||||
damage = other.damage;
|
||||
mask_index = other.sprite_index;
|
||||
image_xscale = other.image_xscale;
|
||||
image_yscale = other.image_yscale;
|
||||
}
|
||||
|
||||
created_damage_objects = true;
|
||||
}
|
||||
|
||||
// When done, stop damage
|
||||
if floor(image_index) >= 3 {
|
||||
if instance_exists(hurt_instance) {
|
||||
instance_destroy(hurt_instance);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user