Other_4.gml 585 B

123456789101112131415161718192021222324252627282930313233
  1. if global.target_door_id != -1
  2. {
  3. with(oDoor)
  4. {
  5. if door_id == global.target_door_id
  6. {
  7. other.x = x;
  8. other.y = y;
  9. global.door_direction = door_direction;
  10. }
  11. }
  12. state = state_exit_door;
  13. enter_room_timer = enter_room_timer_max;
  14. if global.door_direction == "UP"
  15. {
  16. y_spd = jump_spd;
  17. }
  18. }
  19. else
  20. {
  21. with(oSavePoint)
  22. {
  23. global.player.x = x;
  24. global.player.y = y;
  25. }
  26. camera_snap();
  27. }
  28. if global.save_data.player.corpse.targetRoom == room
  29. icl(oEnemyCorpse,
  30. global.save_data.player.corpse.xPos,
  31. global.save_data.player.corpse.yPos);