Game Development Community

Adding new positions..." questions

by Ronald J Nelson · in Torque Game Engine Advanced · 06/08/2008 (10:04 am) · 21 replies

I know alot of you out there have used the "Adding new positions..." resource found here www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=4348 and I have a couple of questions I need answered.

1. When my player leaves the water, his weapon will not fire anymore. I added this in script for when he is swimming and not.
Swimming:
%obj.lastWeapon = %obj.getMountedImage($WeaponSlot);
   %obj.unmountImage($WeaponSlot);

Stop Swimming:
%obj.mountImage(%obj.lastWeapon, 0,0);

Any idea why it is not firing?

2. The conform to terrain resource is outdated for use with TGEA, I wanted to use it for "prone" position. Has anyone updated this to work with TGEA?

3. How can I get the player camera position to update with the player's position?

Other than that, it works pretty good.
Page«First 1 2 Next»
#21
06/21/2008 (5:42 pm)
Final question because other than this my stuff works flawlessly now. It involves the bounding boxes. I set them to be visible and it kind of gives me an idea what the issue is here, but as far as I can tell the problem should not be there.

It has to do with adjusting the size of the bounding box. While it seems to work in almost every case, there is one that is showing that something is not updated correctly, that is crawling under something.

Here is a video to illustrate my problem. Notice the visible bounding box is not resizing, but yet I am still able to move under things. Also it applies correctly when being shot at(ie bullets go over your head when crawling).

i72.photobucket.com/albums/i192/DTDA/th_AshesBounds.jpg

Any ideas?
Page«First 1 2 Next»