1 |
if live_call() |
2 |
return global.live_result; |
3 |
var item_type_last = obj_factory_02_conveyor_puzzle.conveyor_item_type_last |
4 |
var item_type_repeat_count = obj_factory_02_conveyor_puzzle.conveyor_item_type_repeat_count |
5 |
var item_type_repeat_count_max = obj_factory_02_conveyor_puzzle.conveyor_item_type_repeat_count_max |
6 |
item_type = choose("trash", "blue", "red") |
7 |
if (item_type == item_type_last) |
8 |
{ |
9 |
if (item_type_repeat_count < item_type_repeat_count_max) |
10 |
obj_factory_02_conveyor_puzzle.conveyor_item_type_repeat_count += 1 |
11 |
else |
12 |
{ |
13 |
do |
14 |
{ |
15 |
item_type = choose("trash", "blue", "red") |
16 |
} until (item_type != item_type_last); |
17 |
} |
18 |
} |
19 |
else |
20 |
obj_factory_02_conveyor_puzzle.conveyor_item_type_repeat_count = 0 |
21 |
obj_factory_02_conveyor_puzzle.conveyor_item_type_last = item_type |
22 |
if (obj_factory_02_conveyor_puzzle.conveyor_puzzle_active == false) |
23 |
item_type = "trash" |
24 |
destroy_self = false |
25 |
switch item_type |
26 |
{ |
27 |
case "trash": |
28 |
sprite_index = spr_conveyor_items_trash |
29 |
image_index = irandom_range(0, (image_number - 1)) |
30 |
break |
31 |
case "blue": |
32 |
sprite_index = choose(3762, 2536) |
33 |
if (sprite_index == spr_conveyor_items_blue) |
34 |
image_index = irandom_range(0, (image_number - 1)) |
35 |
break |
36 |
case "red": |
37 |
sprite_index = spr_conveyor_items_red |
38 |
image_index = irandom_range(0, (image_number - 1)) |
39 |
break |
40 |
} |
41 |
|
42 |
hsp_base = 1.5 |
43 |
hspeed = (-hsp_base) |
44 |
hspeed_old = 0 |
45 |
vspeed_old = 0 |
46 |
item_wrap = false |
47 |
item_wrap_correct = false |
48 |
item_throw_noloop = false |
49 |
stage = 0 |
50 |
vspeed_max = 6 |
51 |
image_speed = 0 |