Endless flight game

0 favourites
From the Asset Store
Template for an endless runner game, fully documented in comments and video
  • (Error (400)

    Something went wrong. Don't worry, your files are still safe and the Dropboxers have been notified. Check out our Help Center and forums for help, or head back to home.)

    Oops, there was an extra space at the end.. Solved.

  • Yep it will work, but if you want map2 to move it would be best if you set the action to move map2 instead of map1.

  • I already downloaded.

    Your second event changes tilemap1's position where it should change tilemap2's position.

  • LittleStain

    No.Maybe I am fool.

    The second event changes tilemap2's position.


    <img src="https://dl.dropboxusercontent.com/u/260388836/My/Capture.PNG" border="0" />

  • Behind the map2 x<-240 the action is map1 - set x to map2.x+480

    replace map1 with map2, because it should be map2 - set x to map2.x+480

  • LittleStain

    Oh,I get it now.

    I am such a fool.

    From where did you learn all these?(to program so well)

    Are you a programmer?

    I am just a newbie stepping into programming through Construct.

    It's happy to have members like you here.

    Anyway,Now the next step is to make many tilemaps and bring some random tilemap as I mentioned on the earlier thread.I can't seem to find how pick a random tile map and get its name or UID.

  • I'm a graphic designer who wanted to learn how to make my design interactive, so I started using Construct about 1.5 years ago.

    Been on the forums ever since to learn everything there is to learn, even if it doesn't concern my project at the time.

    Half a year ago I discovered I now knew enough to start helping others with questions. I still learn every day, though, by helping others and seeing others being helped.

  • LittleStain

    Now the next step is to make many tilemaps and bring some random tilemap as I mentioned on the earlier thread.I can't seem to find how pick a random tile map and get its name or UID.


  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • The next step seems to be asking someone else to do it for you.. :P

    This can be done in faster ways but just so you can learn I'll explain it in a way you can understand.

    Create a global variable, let's call it NextMap


    map1 <-240


    map2 <-240


    map3 <-240



    set global variable NextMap to floor(random(0,10))


    if global variable = 0

    • create map0

    if global variable = 1

    • create map1


  • LittleStain

    Before proceeding to multiple tilemaps,There's something left;

    Tile maps of different widths.

    I have made a capx and it's working,thanks to you.


    I just replaced the numbers with self.width etc variables.

    So your code above may need some changes.Could it be replacing the -240 with self.width?

    What is the floor thing? and why did you choose o and 10?

  • 0 and 10 are just numbers I chose, they would mean you have 10 maps.

    floor means rounding down. 5.4 = 5 , 6.7 = 6 etcetera.

  • LittleStain

    Your method does not work for tiles having different widths.

    Here's an example:


    3maps of different widths

    I picked a random map from map1 and 2,(Starting map is 0)

    And kept it at the end of map0.So map zero is now dead,I don't want it to come ever again. :) -Just starting map-

    Now the main problem.Please have a look at the capx file.I have tried using functions in vain.

  • Ok, you've kind of made a mess out of it..

    I'll see if I can fix it in a way that you can actually understand what the events are doing..

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)