Mini map for FPS game
by Liu Yi · in Torque Game Engine · 11/20/2006 (2:09 am) · 3 replies
I need to have a mini map for a FPS game. In the game, the locations of the players and vehicles are displayed in the mini map. The players can signal to each other using the mini map.
Is there any existing resources for this purpose? Thanks.
Is there any existing resources for this purpose? Thanks.
#2
11/20/2006 (1:39 pm)
Also, you can check out this one: www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5277
#3
11/20/2006 (2:08 pm)
Ahh, both are good, but I meant to grab Ben's resource, since that's the one I'm using. =) It's the easiest resource I've ever had to implement.
Employee Michael Perry
ZombieShortbus
Then, in your playGui, create the guiCommanderHud control (in a position that is out of playing area, like the top left corner) which is on top and visible. To implement your signaling idea, I'd recommend using the mouse event from the click on the control to get 2D coordinates of the click. Let's say it creates a red circle on your mini-map. Use a server command to transmit the position of the circle to all the clients that you want. Should work just fine. You could even convert those 2D coordinates to 3D and display lighting or particle effects similar to Star Wars Galaxies to give players a point of reference for the signal.