How do I insert small map in my big game.

Get help using Construct 2

Post » Mon Dec 22, 2014 11:32 am

I have really high resolution game 6400X6400 And the player navigates the game with ScrollTo Behavior.

My question is it possible to make a small map of the game as there are in many games

i add picture to explain the question.
You do not have the required permissions to view the files attached to this post.
B
13
S
2
Posts: 95
Reputation: 861

Post » Mon Dec 22, 2014 12:20 pm

This kinda depends on how many objects you want to show on your map. In general it's not really hard - have an object on the map as well and on every tick set its coordinates to, for example, map's left corner + original objects X location/map size ratio. So, say, if your map is 64x64 px that is 100 times smaller you would set the map objects coordinates to map's left corner + OriginalObject.X/100

Same for Y coordinates, of course and you are done.
B
19
S
6
G
7
Posts: 1,101
Reputation: 6,146

Post » Mon Dec 22, 2014 7:06 pm

Somebody wrote:This kinda depends on how many objects you want to show on your map. In general it's not really hard - have an object on the map as well and on every tick set its coordinates to, for example, map's left corner + original objects X location/map size ratio. So, say, if your map is 64x64 px that is 100 times smaller you would set the map objects coordinates to map's left corner + OriginalObject.X/100

Same for Y coordinates, of course and you are done.


Thanks but I did not understand anything. I would be happy if you explain to me again. I have to use a special object or I need to build the map alone?
B
13
S
2
Posts: 95
Reputation: 861

Post » Mon Dec 22, 2014 7:36 pm

The map won't just appear - you basically draw it as a usual map would be done - at a smaller scale than your level. Then place that as an image and show object placement on it by using that same scale you drew your map in.

I went ahead and built an example - study it and you should manage to make your own.
You do not have the required permissions to view the files attached to this post.
B
19
S
6
G
7
Posts: 1,101
Reputation: 6,146

Post » Mon Dec 22, 2014 7:39 pm

Cool that's exactly what I was looking for. Thank you very much.
B
13
S
2
Posts: 95
Reputation: 861

Post » Mon Dec 22, 2014 7:43 pm

Sure thing, just pay attention to the origin point of the map - as the coordinates of the main view go from top left to bottom right so they must on the minimap. Thus place the origin point on the minimap on the top left as well.
B
19
S
6
G
7
Posts: 1,101
Reputation: 6,146

Post » Fri Jan 02, 2015 4:33 pm

@Somebody i try implement you map to my game, layout have 10000, 7777 px i create map 10x smaller, Player on start of layout is on middle of layout.
Dot is not displayed anywhere, how fix this?
B
118
S
32
G
49
Posts: 1,886
Reputation: 37,524

Post » Fri Jan 02, 2015 5:12 pm

Well, it's impossible to tell, using this given information, is it? What you need to do is explained above - set the dot location to map location + player location/10 (or whatever is appropriate). Also make sure the dot is ABOVE the map in Z order.
B
19
S
6
G
7
Posts: 1,101
Reputation: 6,146


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests