Add project code

This commit is contained in:
Andrew Trieu
2025-04-20 15:57:23 +03:00
committed by Andrew Trieu
commit 3fbd0e4977
612 changed files with 11196 additions and 0 deletions

View 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);
}
}