Game Development Community

Question on what is possible (top-down Navy game)

by Nate74 · in Game Design and Creative Issues · 11/15/2011 (7:24 am) · 2 replies

Hello. Please be gentle with me. I have modest development experience but not much with gaming. I am looking to make a top-down, 2D naval tactical combat game and looking for the right tools/engine with which to do so.

I really like what I see here with Torque2D. I just need to know a couple of things. For the sake of these examples, imagine there are two game objects. Both are ships. One is controlled by the player. The other is an AI controlled ship.

1: Can an object be given a direction of travel and speed and have it maintain until adjusted again by the player? (All the examples I have seen have been based on keyboard inputs to move left, right, etc.)

2: Can I, how would I, determine the distance (depicted in meters) between the two objects? How would I, could I, show the bearing of Ship B from Ship A?

3: Can the map be zoomed in/out and centered on various objects and locked to track (scroll with) the player's object?

4: Can sub-menus/displays be created to show information? For example, show the player's current course, speed and weapons status, etc.?

5: What is the maximum size grid that can be portrayed? I would want maps to be able to be large to simulate large areas of open ocean, etc.


Again, I know these questions are probably very basic and silly. I just haven't been able to answer them based on my reading of the documentation and tutorials thus far.

About the author

Recent Threads


#1
11/15/2011 (8:15 am)
I only have T3D, but I'm almost certain the scripting is pretty much the same.

1. Yes (with a loop)

2. Yes, vectorDist("point A", "point B");

3. Yes

4. Yes

5. However large you want it to be?

Torque is a very powerful piece of software, and with a license you get access to the source code to pretty much turn it into whatever you want it to be.
#2
11/15/2011 (8:24 am)
@Nate74 - Robert is more or less spot on with all answers. The only one I would correct is the first question.

You can set a constant velocity or polar force to send an object in a direction. You can also use the moveTo function, which will send it along a straight line until it reaches a destination. No looping required.