1
0

Step_0.gml 328 B

123456789101112131415161718192021222324
  1. if check_hitstop()
  2. exit;
  3. player_status_update();
  4. player_check_door();
  5. player_check_attacked();
  6. player_check_hazard();
  7. player_check_death();
  8. state();
  9. player_move_and_collide();
  10. /**/
  11. image_xscale = facing;
  12. if invincible_timer > 0
  13. {
  14. flash_duration = 1;
  15. flash_timer = abs(sin(current_time * 0.01));
  16. }
  17. sfx_heartbeat_play();