Hi!
I created a very simple map for the updade of my game (see attachment).
I wanted to show the position of the two players on the map
My room is a 50 x 50 tiles. Each tile is a 32x32 pixels.
I decided to represent each tile of the room by 1 pixel on the map! (scale 1/32).
So when the player moves 1 tile (32 pix), he moves 1 pixel on the map.
Do to this, i need
- A map: It's a simple sprite 50x50 pixels
- Two mini players (1 and 2): it's a simple pixel sprite (1x1)...you can make it bigger if you want.
During the game , i record the X & Y positions of the players 1 & 2, and set the position of the mini players on the map
divided by 32.
X_mini_player_1 = X_player_1 / 32
...
When the palyers move, the mini players move at the same time on the map.
You have just to set the position of the map and mini players on the screen where you want to show them...