Hello there!
Ive got a question about a good solution for spawning obstacles and coins on an endless runner game. So ive a ground the player is moving on and on this iam spawning obstacles but i want to have a fix coin spawning for special obstacles. So if there is a rock, the player has to jump over there should be - for excample - four coins ordered in a rainbow shape over the rock to suggest the player to jump over it. If this obstacle with its special coin shape is outside the screen it should reset the coins (if there where collected) and put them onto the same position above the obstacle.
Can someone help me out to find a solution - later i want to generate differend obstacle types with differend coin positions above the obstacles (it depends on what kind of obstacle iam spawning - but basically my intention of this post is to get the idea how to do that).
If youre knowing a tutorial or another post - please feel free to link it here <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">
See the capx:
https://www.dropbox.com/s/8dobttnbxhudl ... .capx?dl=0
Thank you very much!