1 | if live_call() |
2 | return global.live_result; |
3 | switch direction |
4 | { |
5 | case 0: |
6 | image_index = 4 |
7 | break |
8 | case 45: |
9 | image_index = 5 |
10 | break |
11 | case 135: |
12 | image_index = 0 |
13 | break |
14 | case 180: |
15 | image_index = 1 |
16 | break |
17 | case 225: |
18 | image_index = 2 |
19 | break |
20 | case 315: |
21 | image_index = 3 |
22 | break |
23 | } |
24 | |
25 | image_alpha = 1 |
26 | image_xscale = lerp(image_xscale, 1, 0.25) |
27 | if (image_xscale > 0.99) |
28 | image_xscale = 1 |
29 | image_yscale = image_xscale |