1
0

Create_0.gml 680 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. get_hit = function(_info)
  2. {
  3. player_add_INK(1);
  4. flash_timer = 6;
  5. flash_duration = 6;
  6. hp -= _info.damage;
  7. hitstun_timer = hitstun_max;
  8. x_spd_kb = _info.kbFactorX * kb_factor;
  9. y_spd_kb = _info.kbFactorY * kb_factor;
  10. if hp <= 0
  11. {
  12. is_dead = true;
  13. instance_destroy();
  14. }
  15. };
  16. x_spd = 0;
  17. y_spd = 0;
  18. facing = 1;
  19. credit = 0;
  20. hp = 1;
  21. hitstun_timer = 0;
  22. hitstun_max = 10;
  23. kb_factor = 1.0;
  24. collision_hitbox = noone;
  25. is_dead = false;
  26. state = undefined;
  27. enemy_ai = function(){};
  28. animation_spd = 0.25;
  29. image_speed = 0;
  30. hitbox = noone;
  31. // shader
  32. flash_timer = 0;
  33. flash_duration = 0;
  34. u_flash_alpha = shader_get_uniform(sh_flash, "f_alpha");