Hey folks, I'm making a mobile game where the player is always walking on a long layout, 6000px X 293px, and it can only jump. I want to add obstacles but when I placed everything where I wanted to be at, it ran slow on mobile, and I understand this is because the system is loading everything at once...
So what I cant figure out is how to spawn the obstacles, which are 3 different ones and they should appear on different positions of the layout...
I tried to create an Object that when the player would colide with it, it would spawn the obstacle at a certain image point (in front of the player). This kinda works, but since the player can jump it would spawn the object on different areas where they shouldn't be...
So I need help to set up an event where when the player touches this Object, it will spawn the obstacle always at the same height ahead of the player... even if it jumps...
I also need help to set up an event where a family of objects will be destroyed after it passes the player, like 300px away to the left...
I'm sure this should be simple, but I'm just kind of a noob
Thank a lot for anyone who can guide me.