1 |
if (d == 0) |
2 |
scr_depthscr_depthdepth = 50000 - ((y * 10) + (sprite_height * 10)); (); |
3 |
if (fun == 0) |
4 |
{ |
5 |
myinteract = 0; |
6 |
if (hhspeed == 0 && vhspeed == 0) |
7 |
{ |
8 |
image_index = 0; |
9 |
image_speed = 0; |
10 |
} |
11 |
if (abs(hhspeed) > 0 || abs(vhspeed) > 0) |
12 |
{ |
13 |
image_speed = 0.2; |
14 |
if (image_index == 1 || image_index == 3) |
15 |
snd_play(snd_undynestep); |
16 |
} |
17 |
} |
18 |
gg = room_width - view_wview[0]; |
19 |
hh = room_height - view_hview[0]; |
20 |
if (view_xview[0] >= 0) |
21 |
{ |
22 |
x = xhome + floor(view_xview[0] - (view_xview[0] * scrollspeed)); |
23 |
g = x - xprevious; |
24 |
} |
25 |
if (view_xview[0] >= gg) |
26 |
{ |
27 |
x = xhome + floor(gg - (gg * scrollspeed)); |
28 |
g = x - xprevious; |
29 |
} |
30 |
if (view_yview[0] >= 0) |
31 |
y = yhome + floor(view_yview[0] - (view_yview[0] * scrollspeed)); |
32 |
if (view_yview[0] >= hh) |
33 |
y = yhome + floor(hh - (hh * scrollspeed)); |
34 |
xhome += hhspeed; |
35 |
yhome += vhspeed; |