Recent Progress
We managed to import a bot to the game and were able to change his appearance from the standard blue man to the Orc character that comes with Torque. We were able to get the bot moving around the game world by having him following a pre-determined path. We also managed to change the speed that he was running at to make his movement appear less frantic and more "human".
We have also converted our first 3ds max model that we have modeled ourselves. It is a model of a hospital bed. Having converted it to .dts inside in max we were able to add it to the game and scale it to an appropraite size. However we have been having a problem with all of the textures we've been importing into Torque and even the textures that have come with Torque, such as the red Torque Game Logo item. The textures flicker randomly as we move throughout the game. Its possible this is happening because of the machine on which we're running Torque but at the moment we are unsure of the cause.
We have also been successful in adding a trigger box to the game world here by when the player enters the triggered area a function/animation is called. At the moment we have only done this using the jump animation.
Since we are considering the possibility of disabling the mouse as a means of looking around and using it solely to select buttons and objects on screen we decided it was nessessary to be able to create keyboard functions that would allow the player to turn left and right. We have been able to add these functions and map them to keys on the keyboards. We have also adjusted the ingame pitch so that the player is unable to tilt his view into an awkward angle.
We have also been doing work in relation to printing messages to the game screen, ie. in the event of the player colliding with an object or person. At first we focused on doing this through use of the bottomPrint command but following a lot of work on this command we were unable to get it to work properly. We then looked to adapting the chatHud that is used in the starter.fps example that comes with Torque. Following a lot of time and effort we now have messages printing to the chatHud using the messageClient() command. However there is still a lot of work to be done using this command properly.
We attempted to add object selection to our game by way of clicking on an object or person through coding the engine and followed a long tutorial on how to do this. However, at present, we have been unable to get this working.
We also attempted to add a context sensitive crosshair to our game whereby if you moved the cursor over a patients arm the cursor image would change to an image of a hand or if you wanted to administer an injection the cursor would change to an image of a needle. We haven't been able to get this working properly but think that we are not too far away from being able to get it going.
Our main preoccupation at the moment is to add further animations to our player and to the bots, beyond the standard run and jump animations. This is proving far more complicated than initially anticapated although some minor headway has been made. This will continue to be our focus for the time being.

0 Comments:
Post a Comment
<< Home