hi all
i tried to create an in game map for my 3d fps game, only the code i came up with works fine for the first half of the map but not the second.
basically it works like this;
map_x_pos = max_map_x_value / player_x_pos
map_x_pos = maximum_ingame_map_x_value / map_x_pos
and the same for the y position.
-------------------------------------
so what i want to happen is;
while the game is running the player can press "M" to display a sprite (the map) and the code above is used to display another sprite for the player at their current position, but it doesn't work if the player goes into the later half of the map, i.e. if the player's x position > half the max_map_x_value (same for y).
like i said i have the code working fine to display the map and to update the players position etc, it just doesn't work when the player enters the second half of the map.
p.s. the map is all one matrix.
The reason santa is so jolly is because he knows where all the bad girls live.