Menu page map

  • Hi All,

    I'd like to create a menu page in the form of a map. My player would move around the map, going from level to level, preferably leaving a trail behind them, to show their progress. Does anyone know how I might be able to achieve this?

    Thanks for your help.

  • could you be a little more descriptive

  • Hi sosensible, thanks for the reply and apologies for my poor explanation.

    I was hoping to create a menu map similar to the image below (from Zombie Misfits).

    <img src="https://dl.dropboxusercontent.com/u/78057629/world_map.PNG" border="0" />

    My player would go from area to area or level to level, and each time they moved on to the next level, they would leave a trail behind them.

    Hope that helps to make it a little clearer.

    Thanks again for the help.

    <img src="smileys/smiley4.gif" border="0" align="middle" />

  • The easy way would be to have tiled background overlays that you place on your map indicating routes that have been traveled...tracking visited places with global variables...

  • Thanks pixel perfick,

    But I'm still pretty new to C2 and game development, would you be able to elaborate on your advice (perhaps with a simple example)?

    For instance how would you control a smooth line/trail transition i.e. how would you create the illusion of the line/trail growing smoothly behind the player as they move forward to the next level marker?

    Thanks again

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • quick lame example how it could be done:

    dl.dropboxusercontent.com/u/45711709/pathReveeal.capx

  • Thanks for the example Ize, I've taken a look and think I get what's happening, and it should help to get me started.

    One further question about the example; what if I wanted the trail to be a solid, rather than a group of dashed lines?

    I guess I could use the same approach (i.e. make solid blocks and place them next to one another on the layout, so that they appear to be joined together).

    But in order for them to reveal smoothly, wouldn't I need to make my solid line from lots of small blocks, and wouldn't that greatly increase the number of sprites on the screen, thereby slowing things up in the game?

    Is there some way I can create one long solid line and just reveal parts of it as my player passes by (so that just the section behind the player is showing)?

    Thanks again, I really appreciate your help.

    <img src="smileys/smiley4.gif" border="0" align="middle" />

  • Create a tiled background (20x 2px) and set it's width :D

  • Thanks Ize, yes I had the same idea a few days ago.

    <img src="smileys/smiley36.gif" border="0" align="middle" />

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