Enemies not loading when hit level 2

Im currently working on a platformer called hexvoid, and there is an enemy where if you step on its nest, the mom swoops down and attacks you. But in level 2, whenever you step on the nest, the only thing that happens is the nest disappearing. Can someone help me please?
The game that is having issues on level 2

1 Like

The enemies do appear, just the first one in the second level is outside the bounds of the screen. I added the function ‘constrain a between b and c’ to each of the x/y locations you are setting to the enemy.

For the x constraint, I used the screen width as the ‘lower bound’ and the upper bound is the value you want to set.
For the y constraint, I used ‘0’ as the lower bound, and the screen width as the ‘upper bound’.

If you want an explanation of what the ‘constrain’ function does, when you highlight it in the Math menu you can right click and select Help.

This should be:
For the y constraint, I used ‘0’ as the lower bound, and the screen height as the ‘upper bound’.