Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / in game map

Author
Message
garyt
19
Years of Service
User Offline
Joined: 4th Jul 2005
Location:
Posted: 17th Nov 2005 17:01
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;


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.

Login to post a reply

Server time is: 2025-05-22 19:59:05
Your offset time is: 2025-05-22 19:59:05