If you are asking: is it possible with the code I provided, no. You will always exit the first 'if' block with just one target in the world. However, you could repeat the code in the first code block to produce two at essentially the same time. What will happen from there, is the sniper will have to destroy both targets before two more targets are created. The code to create the second target should not have the 'int' castings on 'spawnX' and 'spawnY', as they will already be declared as such.