- Home /
Spawn 2D enemies formation (group) around point
Hi guys!
I have simple 2D game and need to spawn enemies around X, Y point randomly.
Can anyone help with algorithm or best approach to make this feature.
Image that shows sample of spawning.
Thank you.
spawnsample.png
(1.9 kB)
Comment
Best Answer
Answer by Larry-Dietz · Dec 24, 2017 at 05:20 AM
Take a look at this... It should help you get started.
https://docs.unity3d.com/ScriptReference/Random-insideUnitCircle.html
Hope this helps, -Larry
Yes. Absolutely cool. Thank you. I will use this feature.
Your answer
Follow this Question
Related Questions
Player movement boudaries in 2D 1 Answer
Changing player's moving direction 0 Answers
2d Lighting - Weird light triangles 0 Answers
2D Android game - bad performance after launch 1 Answer
How would you make a jump like geometry dash/impossible game? 7 Answers