Hello, I am trying to see if anyone has any idea on how to recreate the logic that Nintendo used to make Yoshi's "Eggs" follow him in the game "Yoshi's Island". What I am trying to figure out is, how can I make it so that when the Player collides with an object, that object destroys and spawns behind the Player so that it can follow him/her.
When the Player collides with another object, this new object also destroys and spawns behind the Player, only behind the first object as well. etc etc for any other object collided with.
(Please Note that I am working in an 8-way style instead of the SideScrolling that Yoshi's Island uses.)