1 | cood_x = irandom_range(-10, (room_width + 10)) |
2 | current_delay++ |
3 | if (current_delay == generation_speed) |
4 | { |
5 | current_delay = 0 |
6 | instance_create_depth(cood_x, cood_y, choose(999, 999, 0), spawned_object) |
7 | } |