How do I spawn 2 or more enemy randomly on surface of land every x second,
this is the picture
dropbox.com/s/r8amlt2m39duly7/Screenshot_2.png
thanks
The easiest way to do this is to put a bunch of invisible sprites - SpawnPoints.
Then you can do something like this:
Every 2 seconds Repeat round(random(10,15)) times System-> Pick random instance of SpawnPoint : SpawnPoint spawn Enemy [/code:2v7a2cd3] This code is not very good because the same SpawnPoint may be selected several times and spawned enemies will overlap. A better solution would be adding Timer behavior to SpawnPoint. Each SpawnPoint instance will be running its own timer and spawning enemies on timer event. You can also add a condition to check if there are other enemies within X pixels from the SpawnPoint before spawning a new enemy.
so sorry, really dont understand , i try to find in menu, and dont find what you said.
i only can make every 2 second,
Develop games in your browser. Powerful, performant & highly capable.
i did this, and nothing happened
this the ss
dropbox.com/s/22hkwag2x96hq09/Screenshot_3.png
Here is a demo:
https://www.dropbox.com/s/lgjr9t2nck4b2 ... .capx?dl=0
And another one with several different methods of spawning:
https://www.dropbox.com/s/0jptlam49u7ug ... .capx?dl=0
thanks you so much dop2000 for the idea