1 | if (type == 0) |
2 | { |
3 | if (x >= (obj_battlesolid_ch1.x + 100)) |
4 | hspeed -= 0.5; |
5 | if (x <= (obj_battlesolid_ch1.x - 100)) |
6 | hspeed += 0.5; |
7 | } |
8 | if (type == 1) |
9 | { |
10 | if (y >= (obj_battlesolid_ch1.y + 100)) |
11 | vspeed -= 0.5; |
12 | if (y <= (obj_battlesolid_ch1.y - 100)) |
13 | vspeed += 0.5; |
14 | } |
15 | siner += 1; |
16 | image_angle += anglespeed; |
17 | if (image_alpha < 1) |
18 | image_alpha += 0.1; |
19 | grazetimer += 1; |
20 | if (grazetimer >= 3) |
21 | { |
22 | grazetimer = 0; |
23 | grazed = 0; |
24 | } |