Create_0.gml 678 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. event_inherited();
  2. hp = 240;
  3. hitstun_duration = 0;
  4. kb_factor = 0;
  5. credit = 30;
  6. apply_collision = false;
  7. enemy_ai = boss_showerhead_ai;
  8. hitbox = enemy_create_hitboxMC(160, 160);
  9. state = "AWAIT";
  10. attack_queue = [1, 3, 1, 3, 2, 1, 2, 3, 1, 2, 2, 3];
  11. attack_index = irandom(array_length(attack_queue) - 1);
  12. shoot_count = 0;
  13. boss_side = -1;
  14. //1 = right, -1 = left
  15. anchor_l = 160;
  16. anchor_r = room_width - 160;
  17. x = anchor_l;
  18. idle_timer = 0;
  19. retreat_spd = 8;
  20. charge_spd = 18;
  21. death_callback = function()
  22. {
  23. global.time_scale_t = 0;
  24. global.time_scale_duration = 90;
  25. global.time_scale = 0.1;
  26. icl(oAccesscard);
  27. instance_destroy();
  28. }
  29. animation_spd = 0;