| 1 |
random_frames = irandom_range(0, 2); |
| 2 |
for (i = 0; i <= random_frames; i++) |
| 3 |
{ |
| 4 |
if (i == random_frames) |
| 5 |
{ |
| 6 |
global.id_store = id; |
| 7 |
instance_create(x, y - (sprite_height * (i + 1)) - 18, obj_battle_enemy_attack_martlet_catapult_frame_center); |
| 8 |
id_frame_center = global.id_store; |
| 9 |
} |
| 10 |
else |
| 11 |
{ |
| 12 |
global.id_store = id; |
| 13 |
instance_create(x, y - (sprite_height * (i + 1)), obj_battle_enemy_attack_martlet_catapult_frame_middle); |
| 14 |
id_frame_middle[i] = global.id_store; |
| 15 |
} |
| 16 |
} |
| 17 |
id_arm = id_frame_center.id_arm; |
| 18 |
move_speed = 4; |
| 19 |
x_destination = obj_dialogue_box_battle_transformation_any.bbox_right + 80; |
| 20 |
launch_alarm = 20; |
| 21 |
launch_alarm_active = false; |
| 22 |
launch_count = 0; |
| 23 |
launch_max = irandom_range(4, 6); |