| 1 |
xx = lengthdir_x(95, image_angle - 90); |
| 2 |
yy = lengthdir_y(95, image_angle - 90); |
| 3 |
if (type == 0) |
| 4 |
{ |
| 5 |
bolt = instance_create(x + xx, y + yy, obj_gunarm_bolt); |
| 6 |
bolt.direction = image_angle - 90; |
| 7 |
bolt.thisd = image_angle - 90; |
| 8 |
bolt.image_angle = bolt.direction; |
| 9 |
bolt.speed = 20; |
| 10 |
bolt.image_xscale = 2; |
| 11 |
bolt.image_yscale = 2; |
| 12 |
} |
| 13 |
if (type == 1) |
| 14 |
{ |
| 15 |
i = 0; |
| 16 |
repeat (3) |
| 17 |
{ |
| 18 |
bolt = instance_create(x + xx, y + yy, obj_gunarm_bolt); |
| 19 |
bolt.direction = image_angle - 90; |
| 20 |
bolt.image_angle = bolt.direction; |
| 21 |
bolt.thisd = (image_angle - 110) + (20 * i); |
| 22 |
bolt.image_angle = bolt.direction; |
| 23 |
bolt.speed = 20; |
| 24 |
bolt.image_xscale = 2; |
| 25 |
bolt.image_yscale = 2; |
| 26 |
i += 1; |
| 27 |
} |
| 28 |
} |
| 29 |
if (type == 2) |
| 30 |
{ |
| 31 |
i = 0; |
| 32 |
repeat (4) |
| 33 |
{ |
| 34 |
bolt = instance_create(x + xx, y + yy, obj_gunarm_bolt); |
| 35 |
bolt.direction = image_angle - 90; |
| 36 |
bolt.image_angle = bolt.direction; |
| 37 |
bolt.thisd = (image_angle - 120) + (20 * i); |
| 38 |
bolt.image_angle = bolt.direction; |
| 39 |
bolt.speed = 20; |
| 40 |
bolt.image_xscale = 2; |
| 41 |
bolt.image_yscale = 2; |
| 42 |
i += 1; |
| 43 |
} |
| 44 |
} |