Jump to content

Adding/moving pre-designed segments


Karma Octopus
 Share

Recommended Posts

Hey guys, I'm working on an endless runner but I have hit a big wall for now, I hope you can give me some hints.

 

What I'm trying to do is to create different segments in Tiled and then randomly load those into the game as you are running

 

I was thinking that the easiest way to do this would be to have three different containers in a row, each container would contain the data from one of the loaded segments.

 

Then I would scroll the containers to the left and when the most left one was out of the screen I would move it to the right of the then most right one and repopulate it with data from another segment.

 

In theory I thought this would be quite simple but it turns out it's not since I can't scroll a Tilemap and move it's position.

 

Do you guys have any ideas? I would really like to use Tilemaps and the arcade physics since it's a simple and efficient solution.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...