| 1 | if (spawn_direction < 180) |
| 2 | spawn_direction = irandom_range(180, 360); |
| 3 | else |
| 4 | spawn_direction = irandom_range(0, 180); |
| 5 | spawn_x = lengthdir_x(spawn_distance, spawn_direction); |
| 6 | spawn_y = lengthdir_y(spawn_distance, spawn_direction); |
| 7 | instance_create_depth(soul.x + spawn_x, soul.y + spawn_y, depth - 1, obj_flowey_battle_gray_gun); |
| 8 | instance_destroy(); |