Create_0.gml 640 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. event_inherited();
  2. hp = 240;
  3. credit = 50;
  4. enemy_ai = hex_ai;
  5. hitbox = enemy_create_hitboxMC(160, 160);
  6. side_len = 128;
  7. roll_spd = 0;
  8. roll_acc = 0;
  9. roll_angle = 0;
  10. dir = 0;
  11. acc = 0;
  12. spd = 0;
  13. x_acc = 0;
  14. y_acc = 0;
  15. pivot_x = 0;
  16. pivot_y = 0;
  17. state = "IDLE";
  18. rebounce_timer = 0;
  19. angle_alter = 0;
  20. cnt = 0;
  21. last_attack = -1;
  22. current_attack = -1;
  23. depth = 10;
  24. base_y = 916;
  25. death_callback = function()
  26. {
  27. with(oEnemyHex)
  28. {
  29. x_spd_kb = choose(-1, 1) * 15;
  30. y_spd_kb = 0;
  31. enemy_death();
  32. }
  33. screen_shake(30);
  34. global.time_scale_t = 0;
  35. global.time_scale = 0.05;
  36. global.camera.smooth = 0.1;
  37. global.camera.follow = global.player;
  38. }