var battle_box = obj_dialogue_box_battle_transformation_any 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 return; } else alarm[0] = coin_offset_time