Game Development Community

Waypoints

by Robert Fritzen · in Torque Game Engine Advanced · 03/30/2011 (3:37 pm) · 5 replies

I'm noticing TGEA has the WaypointMarker object, similar to Tribes 2. and I'm trying to figure out how to get them to display in game.

I want to use these as markers for mission objectives in my single player missions.

Is additional engine source coding required? if so, I'll just create a new GUI object based off of the shapeNameHud that only targets waypoints. I'd probably resource it too if I can get it working.

#1
03/30/2011 (9:10 pm)
I have AFX but I think it's prolly the same:

creator.ed.cs:
%Mission_Item[6] = "WayPoint";

Just make it another number in your array with the rest of them if 6 is taken.

objectBuilderGui.ed.cs:
function ObjectBuilderGui::buildWayPoint(%this)
{
   %this.className = "WayPoint";
   %this.addField("dataBlock", "TypeDataBlock", "WayPointMarker", "MissionMarkerData");
   %this.process();
}

So, note that the way the editor is setup is to call whatever out of the %Mission_Item array at like: build @ %Mission_Item ... so spelling and whatever is important to get those to match.
#2
03/31/2011 (9:26 am)
I'll give that a shot and report back.
#3
03/31/2011 (9:43 am)
Aren't waypoints available under the same editor tree as "misc"? It's been a long time since I used TGEA.
#4
03/31/2011 (6:21 pm)
Those objects are already in the editor, my only issue is that they don't show on the screen like they would in Tribes 2.

They would show, based on the team number, a color (Green: Same Team as Player, Red: Different Team than Player, White: Team 0) with a distance value, along with some name tag on the screen.
#5
03/31/2011 (8:47 pm)
Oh, yeah looks like they are under the Shapes->Misc sorry... and it doesn't help you anyway.

Ok, so you want something that you can show a player? And I don't quite get the color thing. Do you have a screenshot of T2 using this?