1
0

Step_0.gml 610 B

123456789101112131415161718192021222324252627282930
  1. if global.hitstop > 0
  2. global.hitstop--;
  3. if global.developer_mode
  4. {
  5. if mouse_check_button_pressed(mb_left)
  6. {
  7. oPlayer.x = mouse_x;
  8. oPlayer.y = mouse_y;
  9. }
  10. }
  11. if global.time_scale_t < 1.0
  12. {
  13. global.time_scale_t += 1 / global.time_scale_duration;
  14. global.time_scale_t = min(global.time_scale_t, 1.0);
  15. global.time_scale = lerp(0.1, 1.0, power(global.time_scale_t, 6));
  16. }
  17. if oMain._inventory
  18. {
  19. global.inventory = icl(oInventory);
  20. oMain.autoreg_handle("inventory", "inventory", 10);
  21. }
  22. else if oMain._close
  23. {
  24. with(global.inventory) instance_destroy();
  25. oMain.autodel_handle("inventory");
  26. }