I created an endless runner, an basically I have platforms that spawn on the right and go to the left, in which a terminator block destroys the platform bullet outside the layout and then respawns it on the other side.
The platform also has different frames on it to add variety on the platform. so every time the previous platform is destroyed a new platform is created on a different animation frame.
But what I need help with is spawning. How would i choose a specific frame for my platform then spawn an enemy on it?
So basically I want something like this:
*when Platform animation is on frame 3
*spawn enemy on platform 3
I saw a pick nth instance but I'm not quite sure how it works. This may sound like a dumb question but what is an instance? Are they refferring to the object as an instance, or instance variable of an object?
Any help is appreciated