| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- get_hit = function(_info)
- {
- if has_ink
- player_add_INK(1);
-
- flash_timer = 6;
- flash_duration = 6;
-
- hp -= _info.damage;
-
- hitstun_timer = hitstun_max;
- x_spd_kb = _info.kbFactorX * kb_factor;
- y_spd_kb = _info.kbFactorY * kb_factor;
- if hp <= 0
- {
- is_dead = true;
- instance_destroy();
- }
- };
- x_spd = 0;
- y_spd = 0;
- facing_x = 1;
- facing_y = 1;
- credit = 0;
- has_ink = true;
- hp = 1;
- hitstun_timer = 0;
- hitstun_max = 10;
- kb_factor = 1.0;
- collision_hitbox = noone;
- is_dead = false;
- state = undefined;
- enemy_ai = function(){};
- animation_spd = 0.25;
- image_speed = 0;
- hitbox = noone;
- // shader
- flash_timer = 0;
- flash_duration = 0;
- u_flash_alpha = shader_get_uniform(sh_flash, "f_alpha");
|