Im feeling lost
by Matthew W · in Technical Issues · 02/26/2008 (12:23 pm) · 2 replies
Hi
For our class project spanning two semesters, we are in the second semester. We are creating a videogame and i've been assigned the title of "lead programmer." I'm in my second semester of C++ and i think i understand how to program, but i don't understand how to program with torque. I'm not sure of where to start. So far we have enabled advancedCamera from a resource here (put it in orbit mode and focused the camera onto an object.. instead of on a player) and we have successfully made it so that when you right click the cursor vanishes and you're able to move the camera around until the cursor appears again when you've let go of the right mouse button.
Now we want to make it so that left clicking, when the cursor is on, will move our player to the point that was clicked. My partner is really good at searching this site and finding pieces of how to do what we want to do. He found a method in AIPlayer.cc that moves the player to a provided x,y,z point! Awesome. I'm horrible at doing that. After finding that method i would like to actually make something happen but, again, i don't know where to start. Well, i wish i knew where to add code to do that (But, that is for a different thread.).
Is there anything you can think of that ever made you feel like you understand how to program with torque? Could you please share that with me?
thanks,
matthew
For our class project spanning two semesters, we are in the second semester. We are creating a videogame and i've been assigned the title of "lead programmer." I'm in my second semester of C++ and i think i understand how to program, but i don't understand how to program with torque. I'm not sure of where to start. So far we have enabled advancedCamera from a resource here (put it in orbit mode and focused the camera onto an object.. instead of on a player) and we have successfully made it so that when you right click the cursor vanishes and you're able to move the camera around until the cursor appears again when you've let go of the right mouse button.
Now we want to make it so that left clicking, when the cursor is on, will move our player to the point that was clicked. My partner is really good at searching this site and finding pieces of how to do what we want to do. He found a method in AIPlayer.cc that moves the player to a provided x,y,z point! Awesome. I'm horrible at doing that. After finding that method i would like to actually make something happen but, again, i don't know where to start. Well, i wish i knew where to add code to do that (But, that is for a different thread.).
Is there anything you can think of that ever made you feel like you understand how to program with torque? Could you please share that with me?
thanks,
matthew
#2
03/07/2008 (1:08 am)
We still dont have the left clicking to move our character. My partner wants to switch over to the RTS version of Torque and delete everything we dont need, keeping the code that enables a responce by left clicking on the terrain. Do yall think this is a possible thing for us to do? Or do you think that the code for a move response from left clicking the terrain could be transfered from the RTS version to our regular TGE project? Or what idea do you have?
Torque Owner Steve D