Other_4.gml 648 B

123456789101112131415161718192021222324252627282930313233343536
  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. if uuid = global.save_data.world.current_savepoint
  24. {
  25. global.player.x = x;
  26. global.player.y = y;
  27. }
  28. }
  29. camera_snap();
  30. }
  31. if global.save_data.player.corpse.targetRoom == room
  32. icl(oEnemyCorpse,
  33. global.save_data.player.corpse.xPos,
  34. global.save_data.player.corpse.yPos);