Seth12
March 16, 2022, 8:01pm
#1
Hello, I’ve been stuck on this for a while now. I have 2 sprites that I put offscreen (The red ones UP/DW).
I put them in their own group called EnemySpawn.
Then I used this action to spawn enemies at those locations.
My problem is for some reason it only spawns the enemies at the DW location. Am I missing something here? Is an Object Group not the way to go? Any help would be greatly appreciated. Thanks.
MrMen
March 16, 2022, 8:20pm
#2
When you create at the EnemySpawn position, GDevelop will take the first one it comes across, usually the frist one placed in the scene.
You’ll need to either pick one at random using the pick random object condition :
or uniquely identify the EnemySpawner, say by checking EnemySpanwer.ObjectName() :
to get :
1 Like
Seth12
March 16, 2022, 10:10pm
#3
Worked perfectly, thanks for the advise MrMen!