1 |
if (hood == true) |
2 |
{ |
3 |
upsprite = 96 |
4 |
downsprite = 97 |
5 |
leftsprite = 92 |
6 |
rightsprite = 95 |
7 |
} |
8 |
else |
9 |
{ |
10 |
upsprite = 105 |
11 |
downsprite = 109 |
12 |
leftsprite = 103 |
13 |
rightsprite = 104 |
14 |
} |
15 |
if (spritelock == true) |
16 |
{ |
17 |
if (hood == false) |
18 |
{ |
19 |
if (vspeed != 0 || hspeed != 0 || path_speed != 0) |
20 |
{ |
21 |
switch (direction div 90) |
22 |
{ |
23 |
case 0: |
24 |
sprite_index = dalv_right |
25 |
break |
26 |
case 1: |
27 |
sprite_index = dalv_up |
28 |
break |
29 |
case 2: |
30 |
sprite_index = dalv_left |
31 |
break |
32 |
case 3: |
33 |
sprite_index = dalv_down |
34 |
break |
35 |
} |
36 |
|
37 |
} |
38 |
else |
39 |
{ |
40 |
switch (direction div 90) |
41 |
{ |
42 |
case 0: |
43 |
sprite_index = dalv_rightt |
44 |
break |
45 |
case 1: |
46 |
sprite_index = dalv_upt |
47 |
break |
48 |
case 2: |
49 |
sprite_index = dalv_leftt |
50 |
break |
51 |
case 3: |
52 |
sprite_index = dalv_downt |
53 |
break |
54 |
} |
55 |
|
56 |
} |
57 |
} |
58 |
else if (vspeed != 0 || hspeed != 0 || path_speed != 0) |
59 |
{ |
60 |
switch (direction div 90) |
61 |
{ |
62 |
case 0: |
63 |
sprite_index = spr_dalvright |
64 |
break |
65 |
case 1: |
66 |
sprite_index = spr_dalvhup |
67 |
break |
68 |
case 2: |
69 |
sprite_index = spr_dalvhleft |
70 |
break |
71 |
case 3: |
72 |
sprite_index = spr_dalvhdown |
73 |
break |
74 |
} |
75 |
|
76 |
} |
77 |
else |
78 |
{ |
79 |
switch (direction div 90) |
80 |
{ |
81 |
case 0: |
82 |
sprite_index = spr_dalvhrightt |
83 |
break |
84 |
case 1: |
85 |
sprite_index = spr_dalvhupt |
86 |
break |
87 |
case 2: |
88 |
sprite_index = spr_dalvleftt |
89 |
break |
90 |
case 3: |
91 |
sprite_index = spr_dalvhdownt |
92 |
break |
93 |
} |
94 |
|
95 |
} |
96 |
} |
97 |
if (speed > 0) |
98 |
image_speed = 0.2 |
99 |
if (instance_exists(obj_dialogue) && obj_dialogue.sndfnt == 100) |
100 |
{ |
101 |
if (obj_dialogue.cutoff == string_length(obj_dialogue.message[obj_dialogue.message_current])) |
102 |
{ |
103 |
image_speed = 0 |
104 |
image_index = 0 |
105 |
} |
106 |
else |
107 |
image_speed = 0.2 |
108 |
} |