Not 100% sure I understand but, my interpretation is that you want to know how to spawn enemies in a specific area of a map or a specific room. But, have them spawn at a random location within that area/room? If so, you can just use a marker as a spawner, and use a random x and y within the constraints of the area you want to set the local position of the enemy. This way you could say have 100 for the x and it would be 100 pixels to the right of the spawn marker. You could use global coordinates, but if you move your spawner you would need to readjust your numbers hence why I would recommend setting the local position instead of global. Of course this means you enemy should be a child of the spawner marker.
Thanks, I never did it before. Now I see it's pretty simple to do. This should come in handy 😊
How to spawn enemies in specific location but the enemies spawns at a random spawn location
Not 100% sure I understand but, my interpretation is that you want to know how to spawn enemies in a specific area of a map or a specific room. But, have them spawn at a random location within that area/room?
If so, you can just use a marker as a spawner, and use a random x and y within the constraints of the area you want to set the local position of the enemy. This way you could say have 100 for the x and it would be 100 pixels to the right of the spawn marker.
You could use global coordinates, but if you move your spawner you would need to readjust your numbers hence why I would recommend setting the local position instead of global. Of course this means you enemy should be a child of the spawner marker.
Yes