| 1 | if (extend == 1) |
| 2 | { |
| 3 | if (image_index < 8) |
| 4 | image_index += 1; |
| 5 | } |
| 6 | if (extend == 2) |
| 7 | { |
| 8 | if (image_index > 0) |
| 9 | image_index -= 1; |
| 10 | } |
| 11 | if (y > 190 && con == 0) |
| 12 | { |
| 13 | con = 1; |
| 14 | vspeed = 0; |
| 15 | yanchor = y; |
| 16 | xanchor = x; |
| 17 | anchor = 1; |
| 18 | } |
| 19 | if (done == 0) |
| 20 | { |
| 21 | if (image_xscale < 1) |
| 22 | { |
| 23 | image_xscale += 0.1; |
| 24 | } |
| 25 | else |
| 26 | { |
| 27 | done = 1; |
| 28 | con = 2; |
| 29 | alarm[0] = 1; |
| 30 | if (side == 1) |
| 31 | alarm[0] = 25; |
| 32 | } |
| 33 | } |
| 34 | if (con == 2) |
| 35 | { |
| 36 | if (side == 0) |
| 37 | { |
| 38 | } |
| 39 | if (side == 1) |
| 40 | { |
| 41 | } |
| 42 | } |
| 43 | if (con == 3) |
| 44 | { |
| 45 | if (extend != 2) |
| 46 | snd_play(snd_elecdoor_close); |
| 47 | extend = 2; |
| 48 | vspeed = -5; |
| 49 | alarm[0] = -1; |
| 50 | if (image_xscale > 0.1) |
| 51 | image_xscale -= 0.1; |
| 52 | if (y <= 150) |
| 53 | instance_destroy(); |
| 54 | } |