Menu page map

Get help using Construct 2

Post » Thu May 02, 2013 7:26 pm

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.
B
8
S
2
G
1
Posts: 63
Reputation: 880

Post » Thu May 02, 2013 9:44 pm

could you be a little more descriptive
B
39
S
10
G
7
Posts: 514
Reputation: 9,426

Post » Fri May 03, 2013 8:46 am

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).



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.
Pantaloons2013-05-03 08:47:15
B
8
S
2
G
1
Posts: 63
Reputation: 880

Post » Fri May 03, 2013 9:45 am

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...
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,260

Post » Fri May 03, 2013 9:54 am

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
B
8
S
2
G
1
Posts: 63
Reputation: 880

Post » Fri May 03, 2013 10:31 am

quick lame example how it could be done:

https://dl.dropboxusercontent.com/u/45711709/pathReveeal.capx
B
33
S
6
G
7
Posts: 338
Reputation: 7,424

Post » Fri May 03, 2013 11:07 am

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.
Pantaloons2013-05-03 11:22:39
B
8
S
2
G
1
Posts: 63
Reputation: 880

Post » Tue May 07, 2013 7:00 pm

Create a tiled background (20x 2px) and set it's width :D
B
33
S
6
G
7
Posts: 338
Reputation: 7,424

Post » Tue May 07, 2013 7:49 pm

Thanks @Ize, yes I had the same idea a few days ago.
Pantaloons2013-05-07 19:50:17
B
8
S
2
G
1
Posts: 63
Reputation: 880


Return to How do I....?

Who is online

Users browsing this forum: Colorfish, Waltuo and 4 guests