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:
Stop Swimming:
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.
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.
Torque Owner Ronald J Nelson
Code Hammer Games
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).
Any ideas?