1
0

Other_4.gml 435 B

12345678910111213141516171819202122232425262728
  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. }