| 1 |
if (live_call()) |
| 2 |
return global.live_result; |
| 3 |
if (!instance_exists(obj_heart_battle_fighting_parent)) |
| 4 |
{ |
| 5 |
instance_destroy(); |
| 6 |
exit; |
| 7 |
} |
| 8 |
var xx = obj_heart_battle_fighting_parent.x; |
| 9 |
var yy = obj_heart_battle_fighting_parent.y - 20; |
| 10 |
switch (image_angle) |
| 11 |
{ |
| 12 |
case 0: |
| 13 |
xx = obj_heart_battle_fighting_parent.x + 20; |
| 14 |
yy = obj_heart_battle_fighting_parent.y; |
| 15 |
break; |
| 16 |
case 90: |
| 17 |
xx = obj_heart_battle_fighting_parent.x; |
| 18 |
yy = obj_heart_battle_fighting_parent.y - 20; |
| 19 |
break; |
| 20 |
case 180: |
| 21 |
xx = obj_heart_battle_fighting_parent.x - 20; |
| 22 |
yy = obj_heart_battle_fighting_parent.y; |
| 23 |
break; |
| 24 |
case 270: |
| 25 |
xx = obj_heart_battle_fighting_parent.x; |
| 26 |
yy = obj_heart_battle_fighting_parent.y + 20; |
| 27 |
break; |
| 28 |
} |
| 29 |
x = xx; |
| 30 |
y = yy; |
| 31 |
if (laser_active == true) |
| 32 |
{ |
| 33 |
laser_x1 = x; |
| 34 |
laser_x2 = x + lengthdir_x(laser_length, direction); |
| 35 |
laser_y1 = y; |
| 36 |
laser_y2 = y + lengthdir_y(laser_length, direction); |
| 37 |
} |