I was thinking about creating random enemy spawns in the game (which is a platformer type game).
However, I keep running into problems.
Now, the enemy is fine if I manually place him. He is pinned to his hitbox at the start, and all is well.
However, when I have the game spawn him at a spawn point, he is no longer pinned to his hitbox.
I moved the enemy outside the layout and set him to destroy outside layout so he wouldn't interfere.
I put the enemy and the hitbox in a container, and they both do spawn. They just aren't pinned. The enemy is stuck in place while the hitbox chases me around.
I created the random enemy spawn by an event with system > create family (enemies) at a specific location.
I don't know how to get the enemy pinned to the hitbox after he spawns. I already have code that was supposed to pin them (on start of layout, pin enemy to hitbox).