| 1 | var last_room = global.last_room_overworld; |
| 2 | if ((last_room == "rm_dunes_20" && x > 280) || (last_room == "rm_dunes_22" && x < 40) || (global.dunes_flag[10] == 1 && keyboard_multicheck_pressed(0))) |
| 3 | { |
| 4 | if (!instance_exists(obj_transition)) |
| 5 | { |
| 6 | trn = instance_create(0, 0, obj_transition); |
| 7 | if (last_room == "rm_dunes_20") |
| 8 | { |
| 9 | trn.newRoom = 103; |
| 10 | trn.xx = 10; |
| 11 | } |
| 12 | else if (last_room == "rm_dunes_22") |
| 13 | { |
| 14 | trn.newRoom = 101; |
| 15 | trn.xx = 540; |
| 16 | } |
| 17 | } |
| 18 | } |