|
1
|
var battle_box = 3155;
|
|
2
|
var point_x = battle_box.x + lengthdir_x(75, coin_dir_offset);
|
|
3
|
var point_y = battle_box.y + lengthdir_y(75, coin_dir_offset);
|
|
4
|
coin[coin_current] = instance_create_depth(point_x, point_y, -999999, obj_attack_mooch_coin_bag_coin);
|
|
5
|
coin_dir_offset += coin_dir_inc;
|
|
6
|
coin_current += 1;
|
|
7
|
coin_number -= 1;
|
|
8
|
if (coin_number == 0)
|
|
9
|
{
|
|
10
|
alarm[1] = 15; gml_Object_obj_attack_mooch_coin_bag_controller_Alarm_1.gml
var battle_box = 3155;
var point_x = battle_box.x + lengthdir_x(85, coin_bag_offset);
var point_y = battle_box.y + lengthdir_y(85, coin_bag_offset);
var coin_bag = instance_create_depth(point_x, point_y, -1000000, obj_attack_mooch_coin_bag);
for (var i = 0; i < array_length(coin); i++)
coin_bag.coin[i] = coin[i];
alarm[2] = (coin_offset_time * 2) + 20;
|
|
11
|
exit;
|
|
12
|
}
|
|
13
|
else
|
|
14
|
{
|
|
15
|
alarm[0] = coin_offset_time; gml_Object_obj_attack_mooch_coin_bag_controller_Alarm_0.gml
var battle_box = 3155;
var point_x = battle_box.x + lengthdir_x(75, coin_dir_offset);
var point_y = battle_box.y + lengthdir_y(75, coin_dir_offset);
coin[coin_current] = instance_create_depth(point_x, point_y, -999999, obj_attack_mooch_coin_bag_coin);
coin_dir_offset += coin_dir_inc;
coin_current += 1;
coin_number -= 1;
if (coin_number == 0)
{
alarm[1] = 15;
exit;
}
else
{
alarm[0] = coin_offset_time;
}
|
|
16
|
}
|